WarmupPermissionGuard
The
Warmup
can be used to determine
permissions of a given backend user to warm up caches
of specific sites or pages.
Note
Resolved permissions for a given combination of page/site, language id and backend user are cached during runtime.
- class WarmupPermissionGuard
-
- Fully qualified name
-
\Elias
Haeussler\ Typo3Warming\ Security\ Warmup Permission Guard
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