浏览代码

Update PrivacySettings controller, add cache invalidation

Daniel Supernault 1 年之前
父节点
当前提交
e742d595a6
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/Http/Controllers/Settings/PrivacySettings.php

+ 2 - 0
app/Http/Controllers/Settings/PrivacySettings.php

@@ -95,6 +95,8 @@ trait PrivacySettings
         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!');
     }