Skip to content

Redis TagAwareCacheInterface stopped working after upgrade to 5.4.2 #44954

Closed
@madmortigan1

Description

@madmortigan1

Symfony version(s) affected

5.4.2

Description

Hello,

After upgrading to version 5.4.2 the cache service stopped working. I could not trace it to why.
The configuration are working when I downgrade back to 5.4.0.

Unfrtunatly there is no exception that I can catch, and not enough information from nginx, php logs.
Just 502 error from nginx and could not xdebug it, had issues with it.

I went over the documentations and did not see any update that needs to be done to the code or deprecations.

Forgive me for not having enough information accept what I wrote.

Thank you

How to reproduce

Here is the configuration file:
`framework:
cache:
default_redis_provider: 'redis://%env(REDIS_HOST)%:%env(int:REDIS_PORT)%'

    pools:
        redis.cache:
            adapter: 'cache.adapter.redis'
            provider: 'redis://%env(REDIS_HOST)%:%env(int:REDIS_PORT)%'
            default_lifetime: '%framework_cache_lifetime%'
            tags: true

`

I inject it normally view constructor and pool name:
public function __construct( private LoggerInterface $logger, private TagAwareCacheInterface $redisCache ) { }

Usage sample:
$this->redisCache->get(self::CACHE_KEY, function (ItemInterface $item) { $item->expiresAfter(3600); $item->tag(['settings', Core::APP_CACHE_TAG]); ... }

Possible Solution

No response

Additional Context

No response

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