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 <noreply@anthropic.com>main v1.1.343
parent
a96d8f690a
commit
7ccc7921c1
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue