From c46bbd952f6fbcf91408d7ed11010f19c51f6c2c Mon Sep 17 00:00:00 2001 From: Mischa Date: Wed, 8 Jul 2026 10:29:05 +0200 Subject: [PATCH] fix(entry-actions): invalidate page-tree index on delete deleteEntry did cache.deleteAll() but not Cache::invalidateCache(), so under cache.check.method: folder the deleted entry lingered in the pages index and the feed re-rendered it (image-less) on reload. Mirror the create-path fix. See docs/solutions/integration-issues/grav-deleteall-doesnt-invalidate-page-tree-index.md Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Mpdu3Dt1iVoozHwAMyjrbn --- .../entry-actions/classes/EntryActionsApiController.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/entry-actions/classes/EntryActionsApiController.php b/plugins/entry-actions/classes/EntryActionsApiController.php index b2f1115..e97884a 100644 --- a/plugins/entry-actions/classes/EntryActionsApiController.php +++ b/plugins/entry-actions/classes/EntryActionsApiController.php @@ -1,6 +1,7 @@ grav['cache']->deleteAll(); + Cache::invalidateCache(); // Audit trail: entry deletion is destructive and owner-only — record who // did it and to what, so an unexpected disappearance is traceable. $this->grav['log']->info(sprintf('entry-actions: owner "%s" deleted entry "%s"', $user->username, $slug));