Magnolia 6.1 reached end of life on March 31, 2021. This branch is no longer supported, see End-of-life policy.
This module sets the cache policy and cache store configuration on installation, allowing you to cache pages that contain personalized content. See Personalization.
<dependency> <groupId>info.magnolia.advancedcache</groupId> <artifactId>magnolia-advanced-cache-personalization</artifactId> <version>2.2.1</version> </dependency>
/modules/cache/config/contentCaching/defaultPageCache/cachePolicy@class
to
info.magnolia.module.cache.cachepolicy.Default
/modules/cache/config/contentCaching/defaultPageCache/executors/store/cacheContent@class
to info.magnolia.module.cache.executor.Store
/modules/cache/config/contentCaching/defaultPageCache/cachePolicy/ttlVoters/PersonalizedContentTtlVoter@class
and set its value to info.magnolia.personalization.cache.PersonalizedContentTtlVotermagnolia-advanced-cache-personalization.jar
) from WEB-INF/lib
and start up Magnolia again