Web content cache configuration
Caching options for IWWCM are defined in...
portal_server_root/wcm/shared/app/config/wcmservices/WCMConfigService.properties
Set the default Web content cache type
The default Web content caching environment for the Web content server is specified by editing the following properties:
- connect.businesslogic.defaultcache
- connect.moduleconfig.ajpe.contentcache.defaultcontentcache
defaultcache value defaultcontentcache value No caching False None Basic cache True N.A. Site caching False Site Session caching False Session User caching False User Secured caching False Secured Personalized caching False Personalized
Additional default Web content cache parameters
Web content cache configuration settings are specified by the following properties in the WCMConfigService.properties file.
The following properties can be defined for each cache:
Basic cache connect.businesslogic.defaultcacheexpires connect.businesslogic.defaultcache connect.businesslogic.moduleresponsecacheconfig.flushexpiredinterval connect.businesslogic.moduleresponsecacheconfig.writeindexinterval connect.businesslogic.moduleresponsecacheconfig.cachedir connect.businesslogic.moduleresponsecacheconfig.memcachesize connect.businesslogic.moduleresponsecacheconfig.diskcachesize Advanced cache: All connect.moduleconfig.ajpe.contentcache.defaultcontentcache connect.moduleconfig.ajpe.contentcache.contentcacheexpires connect.moduleconfig.ajpe.contentcache.flushexpiredinterval connect.moduleconfig.ajpe.contentcache.writeindexinterval connect.moduleconfig.ajpe.contentcache.cachedir connect.moduleconfig.ajpe.contentcache.memcachesize connect.moduleconfig.ajpe.contentcache.diskcachesize Advanced cache: Session cache only connect.sessioncacheconfig.memcachesize
cachedir Directory on the server used to store cached data. contentcacheexpires Sets the default expiry for all advanced caches. It can be either a relative period or an absolute date and time. defaultcache If true, basic caching is enabled. If false or missing, advanced caching is enabled. defaultcacheexpires Default expiry for the basic cache. It can be either a relative period or an absolute date and time. defaultcontentcache If the advanced cache is enabled, the default advanced cache is set here. diskcachesize Set the number of elements that can be held in a disk cache at any one time. If the value is 0, the disk cache will not be created. flushexpiredinterval How often to check for expired items. (In seconds.) memcachesize Set the number of elements that can be held in a memory cache at any one time. If the value is 0, the memory cache will not be created. writeindexinterval Set how often to write the index to disk in seconds. 0 indicates to write on every change.
Cache size strategy
Content is normally stored in a cache until it has expired. However, if the cache is configured too small, some cached content may be dropped from the cache to make room for newly cached content. This may result in a drop in performance. For this reason, it is important to configure the memory cache and disk cache to be large enough to store the most important content until it expires normally.
Dropping items from caches: Items least recently accessed from the cache will be the first dropped from a cache.
Parent Topic
Caching options