Alternative to Cache tagging (clearing multiple cache keys) #52970
Unanswered
sts-ryan-holton
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I have a package for that, that might help you out: https://packagist.org/packages/henzeb/laravel-cache-index |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to upgrade my application from Laravel 10 to Laravel 11. I'm aware that Laravel removed the docs in 10.x about cache tagging, but I'm trying to figure out how to manage caching then in a modern Laravel project without tagging.
For instance, when querying a model that's cached, how do we bust the cache for that model when it changes?
Most of my keys that are stored in cache also take into account some data about the request, so it would be great to somehow clear groups of cache keys?
What's the approach?
Beta Was this translation helpful? Give feedback.
All reactions