diff --git a/typo3/sysext/indexed_search/Classes/Hook/DeleteIndexedData.php b/typo3/sysext/indexed_search/Classes/Hook/DeleteIndexedData.php
index ad504ee58d90894a4bf4f7af0301621990c0c2c6..0b3da1db230b8e41a222ae5970e34f68a403d589 100644
--- a/typo3/sysext/indexed_search/Classes/Hook/DeleteIndexedData.php
+++ b/typo3/sysext/indexed_search/Classes/Hook/DeleteIndexedData.php
@@ -28,13 +28,9 @@ class DeleteIndexedData
 {
     public function delete(array $params): void
     {
-        if ($this->isEnabled()) {
+        if (isset($params['uid_page']) && $this->isEnabled()) {
             $administrationRepository = GeneralUtility::makeInstance(AdministrationRepository::class);
-
-            $pageIds = $params['pageIdArray'] ?? [];
-            foreach ($pageIds as $pageId) {
-                $administrationRepository->removeIndexedPhashRow('ALL', $pageId, 0);
-            }
+            $administrationRepository->removeIndexedPhashRow('ALL', $params['uid_page'], 0);
         }
     }
 
diff --git a/typo3/sysext/indexed_search/ext_localconf.php b/typo3/sysext/indexed_search/ext_localconf.php
index 0fb8cada0e8ea8083b270de20c3ce40595cc202b..751bb7b42ef2f7fbe0fc5a4908a4ea0d29b008c7 100644
--- a/typo3/sysext/indexed_search/ext_localconf.php
+++ b/typo3/sysext/indexed_search/ext_localconf.php
@@ -23,7 +23,7 @@ ExtensionUtility::configurePlugin(
 );
 
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-cached']['indexed_search'] = TypoScriptFrontendHook::class . '->indexPageContent';
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearPageCacheEval']['indexed_search'] = DeleteIndexedData::class . '->delete';
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']['indexed_search'] = DeleteIndexedData::class . '->delete';
 
 // Configure default document parsers:
 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['external_parsers'] = [