Browse Source

Update FollowerController

Daniel Supernault 6 years ago
parent
commit
14261543ae
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/Http/Controllers/FollowerController.php

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

@@ -68,7 +68,9 @@ class FollowerController extends Controller
             $follower->delete();
         }
 
+        Cache::forget('profile:following:'.$target->id);
         Cache::forget('profile:followers:'.$target->id);
         Cache::forget('profile:following:'.$user->id);
+        Cache::forget('profile:followers:'.$user->id);
     }
 }