Caching the list of publications
Each time Content Delivery main page is loaded, the list of publications needs to be retrieved, and that may impact performance. This is why this list is cached.
20 Mb of RAM memory is dedicated to store the content of pub.xml in order to let the main page load faster. At Content Delivery startup PublicationResource.getPublicationList fetches the pub list and puts it in the cache. The cache has no time limitation. It can however be disabled.
- Visibility changed;
- Version changed;
- Language added/removed
- Publication added/removed;
- Publication prepared;
- Configuration changed.
config.properties-
By default, this caching is set on at installation, but can be turned off anytime (values:
true/false), in the\WEB-INF\config.propertiesconfiguration file:caching.publicationlist.enabled=true ehcache.xml-
There is a list of cache parameters that you can set in the
\WEB-INF\classes\ehcache.xmlconfiguration file.Parameter name Description Default value maxBytesLocalHeap The maximum memory for the cache, in megabytes. 20m(20 Mb)eternal Whether a time limitation applies to the cache or not. If set to falsethen you need to usetimeToLiveSecondsfor specifying the delay size.true