Web content cache configuration
We can tailor the caching behavior of the web content environment by changing configuration settings such as the default cache type and expire settings.
You define and manage web content cache options in the WCM WCMConfigService service.
Set the default web content cache type
The default web content caching environment for the web content server is specified by the following properties:
- connect.businesslogic.defaultcache
- connect.moduleconfig.ajpe.contentcache.defaultcontentcache
Parameter defaultcache value defaultcontentcache value No caching: false None Basic cache: true Not specified 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 WCM WCMConfigService service.
Cache Type Properties Basic cache: connect.businesslogic.defaultcacheexpires connect.businesslogic.defaultcache
Advanced cache: All connect.moduleconfig.ajpe.contentcache.defaultcontentcache connect.moduleconfig.ajpe.contentcache.contentcacheexpires
Advanced cache: Session cache only connect.sessioncacheconfig.memcachesize
Cache Property Details contentcacheexpires 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. resourceserver.browserCacheMaxAge Define the maximum time an item will be stored in a web browser cache. resourceserver.maxCacheObjectSize Define the maximum size of objects that can be cached in kilobytes. By default this is set to 300.
Cache expire time formats
When setting the cache expire settings listed in Table 3, we can specify either a relative time, or absolute time:
- REL {integer-value}{units}
- ABS {date-format-string}
{units} =
- d|D for days
- m|M for months
- s|S for seconds
- h|H for hours
{date-format-string} =
- Mon, 06 Nov 2000 09:00:00 GMT
- Monday, 06-Nov-00 09:00:00 GMT
- Mon Nov 6 09:00:00 2000
- 6 Nov 2000 9:00 AM
The last two formats assume GMT.
Examples:
- contentcacheexpires="REL 300S"
- contentcacheexpires="ABS Mon, 06 Nov 2000 09:00:00 GMT"
Parent: Caching optionsRelated: