ModifyCacheLifetimeForPageEvent
final class \
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
intgetContext()
public
getContext() : Context
Return values
ContextgetPageId()
public
getPageId() : int
Return values
intgetPageRecord()
public
getPageRecord() : array
Return values
arraygetRenderingInstructions()
public
getRenderingInstructions() : array
Return values
arraysetCacheLifetime()
public
setCacheLifetime(int $cacheLifetime) : void
Parameters
- $cacheLifetime : int