Browse Source

Update FollowerController

Daniel Supernault 5 years ago
parent
commit
5b09e6f111
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/Http/Controllers/FollowerController.php

+ 4 - 0
app/Http/Controllers/FollowerController.php

@@ -111,6 +111,10 @@ class FollowerController extends Controller
         Cache::forget('api:local:exp:rec:'.$user->id);
         Cache::forget('user:account:id:'.$target->user_id);
         Cache::forget('user:account:id:'.$user->user_id);
+        Cache::forget('px:profile:followers-v1.3:'.$user->id);
+        Cache::forget('px:profile:followers-v1.3:'.$target->id);
+        Cache::forget('px:profile:following-v1.3:'.$user->id);
+        Cache::forget('px:profile:following-v1.3:'.$target->id);
 
         return $target->url();
     }