Update Profile model, improve counter caching

This commit is contained in:
Daniel Supernault 2020-12-10 22:58:13 -07:00
parent b4573a8f0a
commit 4a14e970f0
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
5 changed files with 62 additions and 23 deletions

View file

@ -115,6 +115,10 @@ class FollowerController extends Controller
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);
Cache::forget('profile:follower_count:'.$target->id);
Cache::forget('profile:follower_count:'.$user->id);
Cache::forget('profile:following_count:'.$target->id);
Cache::forget('profile:following_count:'.$user->id);
return $target->url();
}