AddCacheTagEvent

final readonly class \TYPO3\CMS\Core\Cache\Event\AddCacheTagEvent

This event should only be used in code that has no access to the request attribute 'frontend.cache.collector'.

If you have access to the request, use the $request->getAttribute('frontend.cache.collector')->addCacheTags(...) directly. It's really just there to allow passive cache-data signaling, without exactly knowing the current context.

Table of Contents

Properties

$cacheTag  : CacheTag

Methods

__construct()  : mixed

Properties

Methods

On this page