Update PrivacySettings controller, clear cache after updating

This commit is contained in:
Daniel Supernault 2019-10-11 22:13:32 -06:00
parent 5049d4d64f
commit d8d11d7b9a
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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!');
}