caching-operation

Purpose

Container for pipeline cache definitions.

Contained by

Contains

Attribute

Attribute Description Type Default Options Use
expiry-mode The caching operation supports two different strategies for determining whether an entry in the cache has expired: 'auto' and 'fixed-age'. In 'auto' mode the cache operation collates dependency information about the sources used to generate the content and uses that information to check the validity of the cached content and revalidate if necessary. The operation relies on the information supplied by the sources and therefore using sources that do not provide that information will prevent the cache from being effective. In 'fixed-age' mode the cache operation ignores any cache control information provided by the original sources and instead uses a time to live value supplied to the operation by the page author. In this mode the cache can require a lot of manual management as it will not automatically detect changes in the external sources from which the cached content was generated. This global value may be overridden at pipeline:cache element level and by the cache configuration element. xs:string auto  fixed-age, auto  optional 

Example

<pipeline-configuration>
  <caching-operation>
    <cache
      name="xmlcache"
      strategy="least-recently-used"
      max-entries="10"/>
  </caching-operation>
  <connection timeout="-1"
    enable-caching="false"
    max-cache-entries="1000"/>
</pipeline-configuration>

Related topics