AfterCacheableContentIsGeneratedEvent

FinalYes

Event that allows to enhance or change content (also depending on enabled caching).

Think of $this->isCachingEnabled() as the same as $TSFE->no_cache. Depending on disable or enabling caching, the cache is then not stored in the pageCache.

Table of Contents

Methods

__construct()  : mixed
disableCaching()  : void
enableCaching()  : void
getCacheIdentifier()  : string
getContent()  : string
getRequest()  : ServerRequestInterface
isCachingEnabled()  : bool
setContent()  : void

Methods

__construct()

public __construct(ServerRequestInterface $request, string $content, string $cacheIdentifier, bool $usePageCache) : mixed
Parameters
$request : ServerRequestInterface
$content : string
$cacheIdentifier : string
$usePageCache : bool

disableCaching()

public disableCaching() : void

enableCaching()

public enableCaching() : void

getCacheIdentifier()

public getCacheIdentifier() : string
Return values
string

getContent()

public getContent() : string
Return values
string

getRequest()

public getRequest() : ServerRequestInterface
Return values
ServerRequestInterface

isCachingEnabled()

public isCachingEnabled() : bool
Return values
bool

setContent()

public setContent(string $content) : void
Parameters
$content : string

        
On this page

Search results