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

Public Member Functions

 __construct (private int $cacheLifetime, private readonly int $pageId, private readonly array $pageRecord, private readonly array $renderingInstructions, private readonly Context $context)
 
 setCacheLifetime (int $cacheLifetime)
 
 getCacheLifetime ()
 
 getPageId ()
 
 getPageRecord ()
 
 getRenderingInstructions ()
 
 getContext ()
 

Detailed Description

Event to allow listeners to modify the amount of seconds that a generated frontend page should be cached in the "pages" cache when initially generated.

Definition at line 26 of file ModifyCacheLifetimeForPageEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Event\ModifyCacheLifetimeForPageEvent::__construct ( private int  $cacheLifetime,
private readonly int  $pageId,
private readonly array  $pageRecord,
private readonly array  $renderingInstructions,
private readonly Context  $context 
)

Definition at line 28 of file ModifyCacheLifetimeForPageEvent.php.

Member Function Documentation

◆ getCacheLifetime()

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

Definition at line 41 of file ModifyCacheLifetimeForPageEvent.php.

◆ getContext()

TYPO3\CMS\Frontend\Event\ModifyCacheLifetimeForPageEvent::getContext ( )

Definition at line 61 of file ModifyCacheLifetimeForPageEvent.php.

◆ getPageId()

TYPO3\CMS\Frontend\Event\ModifyCacheLifetimeForPageEvent::getPageId ( )

Definition at line 46 of file ModifyCacheLifetimeForPageEvent.php.

◆ getPageRecord()

TYPO3\CMS\Frontend\Event\ModifyCacheLifetimeForPageEvent::getPageRecord ( )

Definition at line 51 of file ModifyCacheLifetimeForPageEvent.php.

◆ getRenderingInstructions()

TYPO3\CMS\Frontend\Event\ModifyCacheLifetimeForPageEvent::getRenderingInstructions ( )

Definition at line 56 of file ModifyCacheLifetimeForPageEvent.php.

◆ setCacheLifetime()

TYPO3\CMS\Frontend\Event\ModifyCacheLifetimeForPageEvent::setCacheLifetime ( int  $cacheLifetime)

Definition at line 36 of file ModifyCacheLifetimeForPageEvent.php.