Update Profile model, improve counter caching
This commit is contained in:
parent
b4573a8f0a
commit
4a14e970f0
5 changed files with 62 additions and 23 deletions
|
@ -376,6 +376,9 @@ class AccountController extends Controller
|
|||
break;
|
||||
}
|
||||
|
||||
Cache::forget('profile:follower_count:'.$pid);
|
||||
Cache::forget('profile:following_count:'.$pid);
|
||||
|
||||
return response()->json(['msg' => 'success'], 200);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue