Skip to content

Commit

Permalink
fix: use correct event
Browse files Browse the repository at this point in the history
  • Loading branch information
runepiper committed Apr 24, 2024
1 parent 018113d commit baffef8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/EventListener/IndexContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit baffef8

Please sign in to comment.