Policy cache elements

Purpose

Several elements containing policy cache values are defined in the policy-cache section of the mcs-config.xml file. For convenience they are grouped here rather than under individual element names. All the elements have identical attributes.

Note:

Variant (asset) caches are no longer supported, and the related cache elements are now obsolete. The plugin attribute, policy preference and URL caches are no longer used and have been removed. MCS now caches the whole policy and all information derived from that policy, for example the best variant for a specific device, using a single cache entry. You should therefore re-calculate the optimal size of your caches.

Contained by

Attributes

Attribute Description Type Default Options Use
enabled Whether the cache is enabled or not xs:boolean false  false, true optional 
max-entries The maximum number of entries in the cache xs:int -1    optional 
strategy The caching strategy. xs:NCName least-recently-used  least-recently-used  deprecated 
timeout The number of seconds an item can remain in the cache xs:int -1    optional 

Example

<policy-cache>
  <asset-group-cache
    enabled="true"
    strategy="least-recently-used"
    max-entries="25"
    timeout="3600"/>
  ...
</policy-cache>

Related topics