Repository navigation
Replies: 10 comments 25 replies
|
Revert implementation for redis to 9.x with warnings would be the best for me |
|
This was my reply to Taylor in the docs commit:
|
|
Has a decision been reached on this yet? I'm a developing a multi-tenant SaaS application, and imagine my surprise when the tags suddenly went missing from the docs. A tagged cache is required for some significant chunks of data, that are rarely updated. I would like to cache them all forever, and flush the cache only when any corresponding entry is updated. |
|
bumping this |
|
I really hope this is being worked on for the Laravel 12 release. It is a critical feature for a lot of applications. |
|
Why are there still crickets from the Laravel team on this? At the very least, tell us ye or nay if you're planning updates to this functionality, or if we should pound sand and find an alternate solution |
|
since this seems a little dead in the water, I made a solution that implements cache in the It works for my needs, doesn't override too much logic too. |
|
I would be open to solving the Redis "forever" leaking problem if someone has a clean way to do it. The only way I know of to solve it is by maintaining a list of entries somewhere in the cache? |
|
for people who need something very simple for Redis is just a simple wrapper, Laravel already come with all needed for this. However, i use this code above to have a simple way of deleting multiple redis keys if i need. Some apps may need something like tag-name:filter-name:key Not something fancy, but it works for my needs. (hope it can help others) |
|
Considering rapid implementation along with long-term stability and maintainability, it might be a better solution to build Laravel's cache based on the |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Laravel Version
10.x & 11.x & 12.x
PHP Version
8.x
Description
It's well known that laravel tagged cache was removed from the docs a couple of months ago and it looks like a too harsh of a decision for a feature which was in the core for 10 years. So I would like to propose an alternative approach which would not require a lot of work from the devs.
I suggest to revert laravel redis tagged cache to 9.x version. It had no bugs with consistency. It always worked while flushing the tagged cache and it always returned the fresh data. Of course it had leaks, but it was not causing the application to misbehave. This feature was in laravel core for 10 years now and for most of us it was usable. So old implementation can still be used, but some caution messages should be added to the docs.
So my suggestion is to:
So old tagged cache is still usable, though developers have to be aware of the shortcomings. At current state redis tagged cache is unusable as it does not guarantee consistency so memory leaks are not even a concern if it's not working.
Steps To Reproduce
#48078
laravel/docs@63dde39
All reactions