mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update PrivacySettings controller, clear cache after updating
This commit is contained in:
parent
5049d4d64f
commit
d8d11d7b9a
1 changed files with 1 additions and 0 deletions
|
@ -66,6 +66,7 @@ trait PrivacySettings
|
||||||
$settings->save();
|
$settings->save();
|
||||||
}
|
}
|
||||||
Cache::forget('profile:settings:' . $profile->id);
|
Cache::forget('profile:settings:' . $profile->id);
|
||||||
|
Cache::forget('user:account:id:' . $profile->user_id);
|
||||||
return redirect(route('settings.privacy'))->with('status', 'Settings successfully updated!');
|
return redirect(route('settings.privacy'))->with('status', 'Settings successfully updated!');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue