From d8d11d7b9a7453367d165f9dcf17d19a3a89f6a4 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 11 Oct 2019 22:13:32 -0600 Subject: [PATCH] Update PrivacySettings controller, clear cache after updating --- app/Http/Controllers/Settings/PrivacySettings.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/Settings/PrivacySettings.php b/app/Http/Controllers/Settings/PrivacySettings.php index 754258fc7..dff6636eb 100644 --- a/app/Http/Controllers/Settings/PrivacySettings.php +++ b/app/Http/Controllers/Settings/PrivacySettings.php @@ -66,6 +66,7 @@ trait PrivacySettings $settings->save(); } Cache::forget('profile:settings:' . $profile->id); + Cache::forget('user:account:id:' . $profile->user_id); return redirect(route('settings.privacy'))->with('status', 'Settings successfully updated!'); }