Page tree
Skip to end of metadata
Go to start of metadata

This module sets the cache policy and cache store configuration on installation, allowing you to cache pages that contain personalized content. See Personalization.


Installing

Maven is the easiest way to install the module. Add the following dependency to your bundle:

<dependency>
  <groupId>info.magnolia.advancedcache</groupId>
  <artifactId>magnolia-advanced-cache-personalization</artifactId>
  <version>1.8.2</version>
</dependency>

Pre-built jars are also available for download. See Installing a module for help.

Uninstalling

  1. Go to the app, unset all checkboxes for site aware workspaces and confirm.
  2. Set the property /modules/cache/config/contentCaching/defaultPageCache/cachePolicy@class to  info.magnolia.module.cache.cachepolicy.Default
  3. Set the property /modules/cache/config/contentCaching/defaultPageCache/executors/store/cacheContent@class to  info.magnolia.module.cache.executor.Store
  4. Create /modules/cache/config/contentCaching/defaultPageCache/cachePolicy/ttlVoters/PersonalizedContentTtlVoter@class and  set its value to info.magnolia.personalization.cache.PersonalizedContentTtlVoter
  5. Shut down Magnolia, remove the Advanced Cache module JAR (magnolia-advanced-cache-personalization.jar) from WEB-INF/lib and start up Magnolia again