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
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.
…pter (dmaicher)
This PR was squashed before being merged into the 3.4 branch (closes#27158).
Discussion
----------
[Cache] fix logic for fetching tag versions on TagAwareAdapter
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #27147
| License | MIT
| Doc PR | -
There was a problem introduced in #27007 which breaks tag invalidation.
From what I can see there were some cases when the actual tag versions were never fetched from the tags pool and version=0 was used.
@nicolas-grekas this is my attempt of understanding the logic within `TagAwareAdapter`. Please have a look if this makes sense to you 😉
Commits
-------
d3790ca [Cache] fix logic for fetching tag versions on TagAwareAdapter
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:
The final command should output:
Actual output:
Running the command
$ bin/console app:add-invalidate-and-get
works as expectedThe text was updated successfully, but these errors were encountered: