Update public timeline api, add experimental cache
This commit is contained in:
parent
37abcf3898
commit
192553ff77
7 changed files with 113 additions and 28 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue