SiteTools.backgroundRebuildExpiringCache (Method)
Rebuilds cache in the background for pages with content expiring within the specified number of hours.
Returns:
Void
Arguments:
Name | Type | Required | Description |
---|---|---|---|
expireHorizon | NonNegativeInteger | Optional. Defaults to '0'. | Number of hours to look forward for expiring content. All pages with elements expiring within this number of hours will be processed. |
rebuildScope | CacheRebuildScope | Optional. Defaults to 'stale'. | Specifies which elements are rebuilt for the matching pages: All - all elements, regardless of status; Stale - all elements with expired cache; Indexes - all Page Index and Custom Element instances. |
waitTime | NonNegativeInteger | Optional. Defaults to '0'. | Number of seconds to wait between pages. This can help free resources for foreground requests. |
maxPages | NonNegativeInteger | Optional. Defaults to '0'. | Maximum number of pages to process in a single request (zero=unlimited). |
maxMinutes | NonNegativeInteger | Optional. Defaults to '0'. | Maximum number of minutes to run in a single request (zero=unlimited). |
Context:
License Requirements | (none) |
Permission Requirements | site:SiteMaintenance |
Deny Context | (none) |
Require Context | (none) |
Author Lock |
Error Codes:
None
Notes:
None