Replies: 3 comments 2 replies
-
|
never understood tagging anyway. But you have to flush using all the tags. if you tag something with |
Beta Was this translation helpful? Give feedback.
-
|
@henzeb thanks for the suggestion. Flushing entries for both tags is a different operation. I think that that the framework shouldn't leave left-overs in the cache even when the entries are deleted by one of their tags. |
Beta Was this translation helpful? Give feedback.
-
|
In laravel 10, they have rewritten things. I will test a few things when I arrive at work. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It seems that Laravel's
RedisTaggedCachedoesn't clean up all tag references after an entry with multiple tags is deleted.Example
redis-cli:
Tinker:
redis-cli:
It seems that the
expensive_queriestag still remembers thatsome_querykey is tagged, even thoughsome_queryis deleted.In my use-case the keys are URLs, so some of them get quite big, causing the the left-over
standard_refkey to get huge(> 1GB).Note that
standard_refkey doesn't have expiration, so the only way to delete those entries from the server would be to use scheduled command to go through all the tags and check which are not needed anymore. Or flush the database regularly.Is this a bug in Laravel? Or I'm doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions