Move cache flush to testing helper

This commit is contained in:
Marcus Moore 2023-04-06 17:50:24 -07:00
parent 52c733b31d
commit 95f195046d
No known key found for this signature in database
2 changed files with 1 additions and 1 deletions

View file

@ -17,6 +17,5 @@ class SettingObserver
public function saved(Setting $setting)
{
Cache::forget(Setting::SETUP_CHECK_KEY);
Setting::$_cache = null;
}
}

View file

@ -31,5 +31,6 @@ class Settings
private function update(array $attributes)
{
Setting::unguarded(fn() => $this->setting->update($attributes));
Setting::$_cache = null;
}
}