WarmupPermissionGuard

The WarmupPermissionsGuard can be used to determine permissions of a given backend user to warm up caches of specific sites or pages.

class WarmupPermissionGuard
Fully qualified name
\EliasHaeussler\Typo3Warming\Security\WarmupPermissionGuard

Guard to determine cache warmup permissions.

canWarmupCacheOfPage ( $pageId, $context)

Check if caches of the given page can be warmed up while respecting given permission context.

param int $pageId

ID of the page to be checked.

param \EliasHaeussler\Typo3Warming\Security\Context\PermissionContext $context

Permission context which holds language ID and backend user.

returntype

bool

canWarmupCacheOfSite ( $site, $context)

Check if caches of the given site can be warmed up while respecting given permission context.

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

The site to be checked.

param \EliasHaeussler\Typo3Warming\Security\Context\PermissionContext $context

Permission context which holds language ID and backend user.

returntype

bool