Replies: 4 comments 11 replies
-
Revert implementation for redis to 9.x with warnings would be the best for me |
Beta Was this translation helpful? Give feedback.
-
This was my reply to Taylor in the docs commit:
|
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
bumping this |
Beta Was this translation helpful? Give feedback.
-
Laravel Version
10.x & 11.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
Beta Was this translation helpful? Give feedback.
All reactions