Skip to content

symfony/cache 6.2.0 breaks laziness redis connection while instantiating redis cache #48677

@andrew-demb

Description

@andrew-demb

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#L68

Additional Context

This commit introduced proxy inheritance from \Redis: symfony/cache@31ce652

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions