Details
-
New Feature
-
Resolution: Fixed
-
Minor
-
3.1 M3
-
None
-
-
Empty show more show less
Description
In one of my projects I need to have role based caching, basically I only need to manipulate cacheKey to include
an MD5 of all roles assigned to the current user (collected recursively from all groups/subgroups).
Any objection on adding a new filter to cache package to support this behaviour?, in future this can be used as a default cache filter but for
3.1 we can keep the existing CacheFilter (comments?).
This will need minor refactoring of existing cache filter to allow creating extensions like this one.
I can also implement custom CacheManager but then we need to configure CacheManager on every cache filter in a chain to allow
custom behaviour, IMO first approach is cleaner and gives much better control on how you want to manage cache store and you are not forced to use
single strategy over the entire system.