Update Profile model, improve counter caching
This commit is contained in:
parent
b4573a8f0a
commit
4a14e970f0
5 changed files with 62 additions and 23 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue