‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\Event\AfterCacheableContentIsGeneratedEvent Class Reference

Public Member Functions

 __construct (private readonly ServerRequestInterface $request, private readonly TypoScriptFrontendController $controller, private readonly string $cacheIdentifier, private bool $usePageCache)
 
 getRequest ()
 
 getController ()
 
 isCachingEnabled ()
 
 disableCaching ()
 
 enableCaching ()
 
 getCacheIdentifier ()
 

Detailed Description

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.

Definition at line 28 of file AfterCacheableContentIsGeneratedEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Event\AfterCacheableContentIsGeneratedEvent::__construct ( private readonly ServerRequestInterface  $request,
private readonly TypoScriptFrontendController  $controller,
private readonly string  $cacheIdentifier,
private bool  $usePageCache 
)

Definition at line 30 of file AfterCacheableContentIsGeneratedEvent.php.

Member Function Documentation

◆ disableCaching()

TYPO3\CMS\Frontend\Event\AfterCacheableContentIsGeneratedEvent::disableCaching ( )

Definition at line 52 of file AfterCacheableContentIsGeneratedEvent.php.

◆ enableCaching()

TYPO3\CMS\Frontend\Event\AfterCacheableContentIsGeneratedEvent::enableCaching ( )

Definition at line 57 of file AfterCacheableContentIsGeneratedEvent.php.

◆ getCacheIdentifier()

TYPO3\CMS\Frontend\Event\AfterCacheableContentIsGeneratedEvent::getCacheIdentifier ( )

Definition at line 62 of file AfterCacheableContentIsGeneratedEvent.php.

◆ getController()

TYPO3\CMS\Frontend\Event\AfterCacheableContentIsGeneratedEvent::getController ( )

Definition at line 42 of file AfterCacheableContentIsGeneratedEvent.php.

◆ getRequest()

TYPO3\CMS\Frontend\Event\AfterCacheableContentIsGeneratedEvent::getRequest ( )

◆ isCachingEnabled()

TYPO3\CMS\Frontend\Event\AfterCacheableContentIsGeneratedEvent::isCachingEnabled ( )