Skip to content

Commit

Permalink
Update PrivacySettings controller, add cache invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Mar 8, 2024
1 parent 2e5e68e commit e742d59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Http/Controllers/Settings/PrivacySettings.php
Expand Up @@ -95,6 +95,8 @@ public function privacyStore(Request $request)
Cache::forget('pf:acct:settings:hidden-following:' . $pid);
Cache::forget('pf:acct-trans:hideFollowing:' . $pid);
Cache::forget('pf:acct-trans:hideFollowers:' . $pid);
Cache::forget('pfc:cached-user:wt:' . strtolower($profile->username));
Cache::forget('pfc:cached-user:wot:' . strtolower($profile->username));
return redirect(route('settings.privacy'))->with('status', 'Settings successfully updated!');
}

Expand Down

0 comments on commit e742d59

Please sign in to comment.