ShouldUseCachedPageDataIfAvailableEvent

final class \TYPO3\CMS\Frontend\Event\ShouldUseCachedPageDataIfAvailableEvent

Event to allow listeners to disable the loading of cached page data when a page is requested.

Does not have any effect if caching is disabled, or if there is no cached version of a page.

Table of Contents

Methods

__construct()  : mixed
getRequest()  : ServerRequestInterface
setShouldUseCachedPageData()  : void
shouldUseCachedPageData()  : bool

Methods

__construct()

public __construct(ServerRequestInterface $request, bool $shouldUseCachedPageData) : mixed

Parameters

$request : ServerRequestInterface
$shouldUseCachedPageData : bool

getRequest()

public getRequest() : ServerRequestInterface

Return values

ServerRequestInterface

setShouldUseCachedPageData()

public setShouldUseCachedPageData(bool $shouldUseCachedPageData) : void

Parameters

$shouldUseCachedPageData : bool

shouldUseCachedPageData()

public shouldUseCachedPageData() : bool

Return values

bool
On this page