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
…ter (nicolas-grekas)
This PR was merged into the 6.2 branch.
Discussion
----------
[Cache] fix lazyness of redis when using RedisTagAwareAdapter
| Q | A
| ------------- | ---
| Branch? | 6.2
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#48677
| License | MIT
| Doc PR | -
Commits
-------
9d510a7 [Cache] fix lazyness of redis when using RedisTagAwareAdapter
Symfony version(s) affected
6.2.0
Description
After updating to
symfony/cache:6.2.0
our application tries to initialize a connection for Redis while clearing the cache (cache:clear
).How to reproduce
Use Redis cache adapter for app cache and add a dependency for app cache in any class constructor
Possible Solution
Do not inherit from
\Redis
in redis proxy classes or update check for a non-lazy connection according introduced inheritance in https://github.com/symfony/cache/blob/3be8d8412727e268a548319a1cc117232b7983f4/Adapter/RedisTagAwareAdapter.php#L68Additional Context
This commit introduced proxy inheritance from
\Redis
: symfony/cache@31ce652The text was updated successfully, but these errors were encountered: