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