Details
-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
None
Description
At the moment cache can be enabled/disabled based on URIs.
There are other common requirements like:
- don't cache pages when a user is authenticated
- don't cache on the admin server (a lot better than having to change that "enable" property by hand)
- don't cache something based on a totally custom logic.
This could be implemented by refactoring the current cache by adding a list of configurable "cache voters", with some default implementations (cache not authorized pages, cache only if server is public, etc) and leaving a way to implement additional custom checks.
Checklists
Acceptance criteria
Attachments
Issue Links
- depends upon
-
MAGNOLIA-1490 core: combine bypass and cache voters
-
- Closed
-