From 95f195046d09042aa7f23f733c0394fdff12dd6d Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Thu, 6 Apr 2023 17:50:24 -0700 Subject: [PATCH] Move cache flush to testing helper --- app/Observers/SettingObserver.php | 1 - tests/Support/Settings.php | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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; } }