Permissions

Administrators are able to run cache warmup for all available sites and pages. All other users are by default not allowed to run those tasks. Thus, they cannot see both the cache warmup toolbar item and context menu items.

However, you can use User TSconfig to allow cache warmup for specific users/usergroups and sites/pages. Add the following configuration to the options.cacheWarmup User TSconfig:

allowedSites

allowedSites
Type
string (comma-separated list)
Path
options.cacheWarmup.allowedSites

Provide a comma-separated list of site identifiers. Those sites can then be warmed by the backend user.

Example:

options.cacheWarmup.allowedSites = my-dummy-site,another-dummy-site
Copied!

allowedPages

allowedPages
Type
string (comma-separated list)
Path
options.cacheWarmup.allowedPages

Provide a comma-separated list of pages. Those pages can then be warmed by the backend user. Pages can be suffixed by a + sign to recursively include all subpages.

Example:

options.cacheWarmup.allowedPages = 1,2,3+
Copied!