Page cache strategy

Page cache strategies are applied on page components and define cache rules for a specific component. Cache keys can be a combination of several context variables like user, domain or language.

Properties

This section describes the properties of an page cache stategy, as shown on the corresponding Edit pane.

Property Description
Name

Enter the name of the cache rule.

Cache key

Defines the key used for caching. The following model objects are available:

  • ${objectGuid} is the unique identifier of the portlet / page component being cached.
  • ${domain} is the unique identifier of the domain currently being serviced.
  • ${language} is the language code of the iKnowBase language currently in use.
  • ${user} is the userid of the iKnowBase user currently being serviced.
  • ${request} is a RequestModel containing most information pertaining to the request, including parameters. See the APIReference for more details on this model object.

Combine values like objectGuid, domain, language, user and request.param to create a desired cache key. A typical minimal cache key will contain at least objectGuid, domain and language.

Note that you should take care to avoid unlimited proliferation of cache keys, in particular if you were to include a document id parameter as part of the cache key.

Expiration

Enter how long the component should be cached in seconds. The value DATE tells the cache engine to cache the object until next date.

Publish updates to instant

Set to checked if you want a message published to iKnowInstant when the object is expired.