AccessUtility

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

class AccessUtility
Fully qualified name
\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.

param int $pageId

ID of the page to be checked.

param int $languageId

Optional language ID to be included in the check.

returntype

bool

canWarmupCacheOfSite ( $site, $languageId = null)

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

param \TYPO3\CMS\Core\Site\Entity\Site $site

The site to be checked.

param int $languageId

Optional language ID to be included in the check.

returntype

bool