Update public timeline api, add experimental cache

This commit is contained in:
Daniel Supernault 2021-10-21 19:02:15 -06:00
parent 37abcf3898
commit 192553ff77
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
7 changed files with 113 additions and 28 deletions

View file

@ -56,7 +56,7 @@ class LikeController extends Controller
}
Cache::forget('status:'.$status->id.':likedby:userid:'.$user->id);
StatusService::del($status->id);
StatusService::refresh($status->id);
if ($request->ajax()) {
$response = ['code' => 200, 'msg' => 'Like saved', 'count' => 0];