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

@ -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);
}