You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was merged into the 5.4 branch.
Discussion
----------
[Cache] Always select database for persistent redis connections
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fixsymfony#51578
| License | MIT
Even though the `dbindex` is supposed to be `0` by default for any new redis connection, when dealing with a persistent connection pool, due to a [bug in phpreds](phpredis/phpredis#1920) you can actually end up on a different database.
This PR will call `select` even for a `dbindex` of `0` under these conditions to assure you are actually on the right database.
Commits
-------
ce4f815 bug symfony#51578 [Cache] always select database for persistent redis connections
0 commit comments