Update PrivacySettings controller, clear cache after updating

pull/1781/head
Daniel Supernault 6 years ago
parent 5049d4d64f
commit d8d11d7b9a
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

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

Loading…
Cancel
Save