cakephp icon indicating copy to clipboard operation
cakephp copied to clipboard

Cache tags beyond groups

Open dereuromark opened this issue 5 months ago • 8 comments

Description

https://book.cakephp.org/5/en/core-libraries/caching.html We seem to have groups. Those are however linked to the engine itself, not individual cache entries. I think given this they are quite limited in its use - and not very practical.

In other systems they use cache tags, and those work on the entries themselves https://symfony.com/doc/current/components/cache/cache_invalidation.html#using-cache-tags That makes it possible to store them with specific entries, and then be able to invalidate them throughout that engine. This is usually what they makes them so useful and practical, you dont need to set up engine configs to get different tags to work, and invalidating them.

We lack this functionality it seems.

Symfony added this with v4 it seems ( https://github.com/symfony/symfony/pull/28096 + https://github.com/symfony/symfony/pull/28097 )

dereuromark avatar May 08 '25 10:05 dereuromark