The 5.7 branch of Magnolia reached End-of-Life on December 31, 2023, as specified in our End-of-life policy. This means the 5.7 branch is no longer maintained or supported. Please upgrade to the latest Magnolia release. By upgrading, you will get the latest release of Magnolia featuring significant improvements to the author and developer experience. For a successful upgrade, please consult our Magnolia 6.2 documentation. If you need help, please contact info@magnolia-cms.com.
This module sets the cache policy and cache store configuration on installation, allowing you to cache pages that contain personalized content. See Personalization.
Installing
<version/>
in the dependency.<dependency> <groupId>info.magnolia.advancedcache</groupId> <artifactId>magnolia-advanced-cache-personalization</artifactId> </dependency>
Uninstalling
- Go to the app, unset all checkboxes for site aware workspaces and confirm.
- Set the property
/modules/cache/config/contentCaching/defaultPageCache/cachePolicy@class
toinfo.magnolia.module.cache.cachepolicy.Default
- Set the property
/modules/cache/config/contentCaching/defaultPageCache/executors/store/cacheContent@class
toinfo.magnolia.module.cache.executor.Store
- Create
/modules/cache/config/contentCaching/defaultPageCache/cachePolicy/ttlVoters/PersonalizedContentTtlVoter@class
and set its value to info.magnolia.personalization.cache.PersonalizedContentTtlVoter - Shut down Magnolia, remove the Advanced Cache module JAR (
magnolia-advanced-cache-personalization.jar
) fromWEB-INF/lib
and start up Magnolia again