ModifyCacheLifetimeForPageEvent

final class \TYPO3\CMS\Frontend\Event\ModifyCacheLifetimeForPageEvent

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.

Table of Contents

Methods

__construct()  : mixed
getCacheLifetime()  : int
getContext()  : Context
getPageId()  : int
getPageRecord()  : array
getRenderingInstructions()  : array
setCacheLifetime()  : void

Methods

__construct()

public __construct(int $cacheLifetime, int $pageId, array $pageRecord, array $renderingInstructions, Context $context) : mixed

Parameters

$cacheLifetime : int
$pageId : int
$pageRecord : array
$renderingInstructions : array
$context : Context

getCacheLifetime()

public getCacheLifetime() : int

Return values

int

getPageId()

public getPageId() : int

Return values

int

getPageRecord()

public getPageRecord() : array

Return values

array

getRenderingInstructions()

public getRenderingInstructions() : array

Return values

array

setCacheLifetime()

public setCacheLifetime(int $cacheLifetime) : void

Parameters

$cacheLifetime : int
On this page