mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-25 20:51:30 -08:00
Move cache flush to testing helper
This commit is contained in:
parent
52c733b31d
commit
95f195046d
|
@ -17,6 +17,5 @@ class SettingObserver
|
|||
public function saved(Setting $setting)
|
||||
{
|
||||
Cache::forget(Setting::SETUP_CHECK_KEY);
|
||||
Setting::$_cache = null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,5 +31,6 @@ class Settings
|
|||
private function update(array $attributes)
|
||||
{
|
||||
Setting::unguarded(fn() => $this->setting->update($attributes));
|
||||
Setting::$_cache = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue