no_cache. */ final class AfterCacheableContentIsGeneratedEvent { public function __construct( private readonly ServerRequestInterface $request, private string $content, private readonly string $cacheIdentifier, private bool $usePageCache ) {} public function getRequest(): ServerRequestInterface { return $this->request; } public function getContent(): string { return $this->content; } public function setContent(string $content): void { $this->content = $content; } public function isCachingEnabled(): bool { return $this->usePageCache; } public function disableCaching(): void { $this->usePageCache = false; } public function enableCaching(): void { $this->usePageCache = true; } public function getCacheIdentifier(): string { return $this->cacheIdentifier; } }