AfterCacheableContentIsGeneratedEvent
FinalYes
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
stringgetContent()
public
getContent() : string
Return values
stringgetRequest()
public
getRequest() : ServerRequestInterface
Return values
ServerRequestInterfaceisCachingEnabled()
public
isCachingEnabled() : bool
Return values
boolsetContent()
public
setContent(string $content) : void
Parameters
- $content : string