From 4b05b3db6da1aadb631e890d798342a1b26ccef5 Mon Sep 17 00:00:00 2001 From: w33b Date: Sat, 10 Jan 2026 23:24:31 +0100 Subject: [PATCH] Fix cache not flushed after comment delete by admin --- app/Livewire/AdminCommentSearch.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Livewire/AdminCommentSearch.php b/app/Livewire/AdminCommentSearch.php index cfa3452..54e5381 100644 --- a/app/Livewire/AdminCommentSearch.php +++ b/app/Livewire/AdminCommentSearch.php @@ -29,6 +29,8 @@ class AdminCommentSearch extends Component { $comment = Comment::where('id', (int) $commentId)->firstOrFail(); $comment->delete(); + + cache()->flush(); } public function render()