AccessUtility

The AccessUtility can be used to determine permissions of the current user to warm up caches of specific sites or pages.

class EliasHaeussler\Typo3Warming\Utility\AccessUtility

Utility class to determine cache warmup permissions.

canWarmupCacheOfPage($pageId, $languageId = null)

Check if the current user can warm up caches of the given page.

Parameters
  • $pageId (int) -- ID of the page to be checked.

  • $languageId (int) -- Optional language ID to be included in the check.

Return type

bool

canWarmupCacheOfSite($site, $languageId = null)

Check if the current user can warm up caches of the given site.

Parameters
  • $site (TYPO3\CMS\Core\Site\Entity\Site) -- The site to be checked.

  • $languageId (int) -- Optional language ID to be included in the check.

Return type

bool

See also

View the sources on GitHub: