diff --git a/app/Observers/SettingObserver.php b/app/Observers/SettingObserver.php index 350249f57b..ec9dec3f23 100644 --- a/app/Observers/SettingObserver.php +++ b/app/Observers/SettingObserver.php @@ -17,6 +17,5 @@ class SettingObserver public function saved(Setting $setting) { Cache::forget(Setting::SETUP_CHECK_KEY); - Setting::$_cache = null; } } diff --git a/tests/Support/Settings.php b/tests/Support/Settings.php index a28819e8df..e0b9970544 100644 --- a/tests/Support/Settings.php +++ b/tests/Support/Settings.php @@ -31,5 +31,6 @@ class Settings private function update(array $attributes) { Setting::unguarded(fn() => $this->setting->update($attributes)); + Setting::$_cache = null; } }