Closed
Description
Q | A |
---|---|
Bug report? | yes |
Feature request? | no |
BC Break report? | no |
RFC? | no |
Symfony version | ^4.0 |
I am using the TagAwareAdapter
so I can invalidate my REDIS cache by tag. The problem is that, while the cache item gets invalidated, this change does not persist between requests.
See this reproduction repo , it has four commands:
One that populates the cache, one that invalidates the cache by tag, one that fetches the keys and one that does all three in a single command.
Expected behaviour:
$ bin/console app:add
$ bin/console app:invalidate
$ bin/console app:get
The final command should output:
item-0, isHit:false
item-1, isHit:false
item-2, isHit:false
item-3, isHit:false
item-4, isHit:false
Actual output:
item-0, isHit:true
item-1, isHit:true
item-2, isHit:true
item-3, isHit:true
item-4, isHit:true
Running the command $ bin/console app:add-invalidate-and-get
works as expected