From 7ccc7921c113999b47afd0b906099a30c95f26ba Mon Sep 17 00:00:00 2001 From: boban Date: Sun, 26 Apr 2026 21:29:33 +0200 Subject: [PATCH] Fix: health:services Cache nach ClamAV enable/disable leeren Dashboard zeigte ClamAV bis zu 5 Min. falsch als online/offline weil der Monit-Cache veraltet war. Cache wird jetzt sofort invalidiert. Co-Authored-By: Claude Sonnet 4.6 --- app/Livewire/Ui/Security/ClamavManager.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Livewire/Ui/Security/ClamavManager.php b/app/Livewire/Ui/Security/ClamavManager.php index 87d18b9..2f2dd0f 100644 --- a/app/Livewire/Ui/Security/ClamavManager.php +++ b/app/Livewire/Ui/Security/ClamavManager.php @@ -2,6 +2,8 @@ namespace App\Livewire\Ui\Security; +use App\Support\CacheVer; +use Illuminate\Support\Facades\Cache; use Livewire\Attributes\Layout; use Livewire\Attributes\Title; use Livewire\Component; @@ -81,6 +83,7 @@ class ClamavManager extends Component $this->enabled = $this->serviceEnabled(); $this->ramMb = $this->readRamMb(); $this->lastSuccess = 'ClamAV ist aktiv und läuft.'; + Cache::forget(CacheVer::k('health:services')); } } @@ -91,6 +94,7 @@ class ClamavManager extends Component else $this->lastError = $msg; $this->running = $this->serviceActive(); $this->enabled = $this->serviceEnabled(); + Cache::forget(CacheVer::k('health:services')); } public function updateDb(): void