‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\Event\AfterCachedPageIsPersistedEvent Class Reference

Public Member Functions

 __construct (private ServerRequestInterface $request, private TypoScriptFrontendController $controller, private string $cacheIdentifier, private array $cacheData, private int $cacheLifetime)
 
 getRequest ()
 
 getController ()
 
 getCacheIdentifier ()
 
 getCacheData ()
 
 getCacheLifetime ()
 

Detailed Description

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

Definition at line 31 of file AfterCachedPageIsPersistedEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Event\AfterCachedPageIsPersistedEvent::__construct ( private ServerRequestInterface  $request,
private TypoScriptFrontendController  $controller,
private string  $cacheIdentifier,
private array  $cacheData,
private int  $cacheLifetime 
)

Definition at line 33 of file AfterCachedPageIsPersistedEvent.php.

Member Function Documentation

◆ getCacheData()

TYPO3\CMS\Frontend\Event\AfterCachedPageIsPersistedEvent::getCacheData ( )

Definition at line 56 of file AfterCachedPageIsPersistedEvent.php.

◆ getCacheIdentifier()

TYPO3\CMS\Frontend\Event\AfterCachedPageIsPersistedEvent::getCacheIdentifier ( )

Definition at line 51 of file AfterCachedPageIsPersistedEvent.php.

◆ getCacheLifetime()

TYPO3\CMS\Frontend\Event\AfterCachedPageIsPersistedEvent::getCacheLifetime ( )

The amount of seconds until the cache entry is invalid.

Definition at line 64 of file AfterCachedPageIsPersistedEvent.php.

◆ getController()

TYPO3\CMS\Frontend\Event\AfterCachedPageIsPersistedEvent::getController ( )

Definition at line 46 of file AfterCachedPageIsPersistedEvent.php.

◆ getRequest()

TYPO3\CMS\Frontend\Event\AfterCachedPageIsPersistedEvent::getRequest ( )

Definition at line 41 of file AfterCachedPageIsPersistedEvent.php.