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.
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.
asset-group-cache
audio-component-cache
binding-cache
button-image-component-cache
This element is deprecated.
chart-component-cache
This element is deprecated.
device-cache
Although the device-cache element is a child of the policy-cache element it has no effect on the configuration of the local policy caches; the element configures the device cache.
dynamic-visual-component-cache
This element is deprecated.
image-component-cache
layout-cache
link-component-cache
resource-component-cache
This element is deprecated.
rollover-image-component-cache
script-component-cache
text-component-cache
theme-cache
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 |
<policy-cache>
<asset-group-cache
enabled="true"
strategy="least-recently-used"
max-entries="25"
timeout="3600"/>
...
</policy-cache>