Permissions
Note
Cache warmup can also be enabled or disabled globally. Check out the extension configuration for page tree and backend toolbar.
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.
User TSconfig:
allowedSites
-
- Type
- string (comma-separated list)
- Path
options.
cache Warmup. allowed Sites
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
-
- Type
- string (comma-separated list)
- Path
options.
cache Warmup. allowed Pages
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!
See also
You might also want to check out AccessUtility for the actual implementation of the permission check.