AfterCachedPageIsPersistedEvent

final readonly class \TYPO3\CMS\Frontend\Event\AfterCachedPageIsPersistedEvent

Event that is used directly after all cached content is stored in the page cache.

NOT fired, if:

  • A page is called from the cache
  • Caching is disabled using 'frontend.cache.instruction' request attribute, which can be set by various middlewares or AfterCacheableContentIsGeneratedEvent

Table of Contents

Methods

__construct()  : mixed
getCacheData()  : array
getCacheIdentifier()  : string
getCacheLifetime()  : int
The amount of seconds until the cache entry is invalid.
getController()  : TypoScriptFrontendController
getRequest()  : ServerRequestInterface

Methods

__construct()

public __construct(ServerRequestInterface $request, TypoScriptFrontendController $controller, string $cacheIdentifier, array $cacheData, int $cacheLifetime) : mixed

Parameters

$request : ServerRequestInterface
$controller : TypoScriptFrontendController
$cacheIdentifier : string
$cacheData : array
$cacheLifetime : int

getCacheData()

public getCacheData() : array

Return values

array

getCacheIdentifier()

public getCacheIdentifier() : string

Return values

string

getCacheLifetime()

The amount of seconds until the cache entry is invalid.

public getCacheLifetime() : int

Return values

int

getRequest()

public getRequest() : ServerRequestInterface

Return values

ServerRequestInterface
On this page