ModifyCacheLifetimeForPageEvent
FinalYes
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<string|int, mixed>
- getRenderingInstructions() : array<string|int, mixed>
- setCacheLifetime() : void
Methods
__construct()
public
__construct(int $cacheLifetime, int $pageId, array<string|int, mixed> $pageRecord, array<string|int, mixed> $renderingInstructions, Context $context) : mixed
Parameters
- $cacheLifetime : int
- $pageId : int
- $pageRecord : array<string|int, mixed>
- $renderingInstructions : array<string|int, mixed>
- $context : Context
getCacheLifetime()
public
getCacheLifetime() : int
Return values
intgetContext()
public
getContext() : Context
Return values
ContextgetPageId()
public
getPageId() : int
Return values
intgetPageRecord()
public
getPageRecord() : array<string|int, mixed>
Return values
array<string|int, mixed>getRenderingInstructions()
public
getRenderingInstructions() : array<string|int, mixed>
Return values
array<string|int, mixed>setCacheLifetime()
public
setCacheLifetime(int $cacheLifetime) : void
Parameters
- $cacheLifetime : int