Page.saveCacheProperties (Method)

Saves a page's cache properties.

Returns:

Void

Arguments:

Name Type Required Description
pageID RealPageID_NonBaseTemplate Required A page's ID.
dynamicContentCacheControl CacheControl Optional. Defaults to 'Site'. A string describing who controls the 'Cache Dynamic Content' property for dynamic elements.
dynamicContentCacheKeepTime NonNegativeInteger Optional. Defaults to '0'. The number of minutes to keep cache for dynamic content.
dynamicContentCacheKeepTimeUnit TimeUnit_DHMS Optional. Defaults to 'Minutes'. A string identifying a unit of time as being days, hours, minutes or seconds.
staleCacheCacheControl CacheControl Optional. Defaults to 'Site'. A string describing who controls the 'Stale Cache Handling' property.
staleCacheMaxKeepTime NonNegativeInteger Optional. Defaults to '0'. The maximum number of minutes to keep stale cache on this page. Pass 0 to never use the cache (i.e. run the element as part of rendering).
staleCacheMaxKeepTimeUnit TimeUnit_DHMS Optional. Defaults to 'Minutes'. A string identifying a unit of time as being days, hours, minutes or seconds.
staticRenderMode StaticRenderMode Optional. Defaults to 'Auto Detect'. An integer specifying the cache detection mode, as follows: 0 (manual static), 1 (manual dynamic), and 2 (auto detect).

Context:

License Requirements None
Permission Requirements page:Author
Deny Context None
Require Context AuthoringEnabled
Author Lock If available
Transaction Logging If transaction logging is enabled at the site level, calls to this method will be logged
Customization This method may be customized at the site level

Error Codes:

None

Notes:

None