AfterCacheableContentIsGeneratedEvent

final class \TYPO3\CMS\Frontend\Event\AfterCacheableContentIsGeneratedEvent

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

Depending on disable or enabling caching, the cache is then not stored in the pageCache.

Until TYPO3 v13, the flag "isCachingEnabled" was available in $TSFE->no_cache.

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