1
0
Fork 0

Update AccountController

This commit is contained in:
Daniel Supernault 2019-04-28 21:49:17 -06:00
parent 236fb901a3
commit e4e6f10c90
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 6 additions and 0 deletions

View File

@ -207,6 +207,7 @@ class AccountController extends Controller
Cache::forget("user:filter:list:$pid"); Cache::forget("user:filter:list:$pid");
Cache::forget("feature:discover:people:$pid"); Cache::forget("feature:discover:people:$pid");
Cache::forget("feature:discover:posts:$pid"); Cache::forget("feature:discover:posts:$pid");
Cache::forget("api:local:exp:rec:$pid");
return redirect()->back(); return redirect()->back();
} }
@ -257,6 +258,7 @@ class AccountController extends Controller
Cache::forget("user:filter:list:$pid"); Cache::forget("user:filter:list:$pid");
Cache::forget("feature:discover:people:$pid"); Cache::forget("feature:discover:people:$pid");
Cache::forget("feature:discover:posts:$pid"); Cache::forget("feature:discover:posts:$pid");
Cache::forget("api:local:exp:rec:$pid");
if($request->wantsJson()) { if($request->wantsJson()) {
return response()->json([200]); return response()->json([200]);
@ -310,6 +312,8 @@ class AccountController extends Controller
Cache::forget("user:filter:list:$pid"); Cache::forget("user:filter:list:$pid");
Cache::forget("feature:discover:people:$pid"); Cache::forget("feature:discover:people:$pid");
Cache::forget("feature:discover:posts:$pid"); Cache::forget("feature:discover:posts:$pid");
Cache::forget("api:local:exp:rec:$pid");
return redirect()->back(); return redirect()->back();
} }
@ -360,6 +364,8 @@ class AccountController extends Controller
Cache::forget("user:filter:list:$pid"); Cache::forget("user:filter:list:$pid");
Cache::forget("feature:discover:people:$pid"); Cache::forget("feature:discover:people:$pid");
Cache::forget("feature:discover:posts:$pid"); Cache::forget("feature:discover:posts:$pid");
Cache::forget("api:local:exp:rec:$pid");
return redirect()->back(); return redirect()->back();
} }