diff --git a/Classes/EventListener/IndexContent.php b/Classes/EventListener/IndexContent.php index e6f3f6e..3626054 100644 --- a/Classes/EventListener/IndexContent.php +++ b/Classes/EventListener/IndexContent.php @@ -5,13 +5,13 @@ namespace VV\T3meilisearch\EventListener; use TYPO3\CMS\Core\Utility\GeneralUtility; -use TYPO3\CMS\Frontend\Event\AfterCachedPageIsPersistedEvent; +use TYPO3\CMS\Frontend\Event\AfterCacheableContentIsGeneratedEvent; use VV\T3meilisearch\Domain\Model\Document; use VV\T3meilisearch\Service\IndexService; class IndexContent { - public function __invoke(AfterCachedPageIsPersistedEvent $event): void + public function __invoke(AfterCacheableContentIsGeneratedEvent $event): void { // Only do this when caching is enabled if ($event->isCachingEnabled() === false) {