Update Cache, prepare for laravel 5.8
This commit is contained in:
parent
6bbef6ac4e
commit
4739c25fe0
15 changed files with 31 additions and 30 deletions
|
@ -57,7 +57,7 @@ class BaseApiController extends Controller
|
|||
{
|
||||
$pid = Auth::user()->profile->id;
|
||||
$page = $request->input('page') ?? 1;
|
||||
$res = Cache::remember('profile:notifications:'.$pid.':page:'.$page, 5, function() use($pid) {
|
||||
$res = Cache::remember('profile:notifications:'.$pid.':page:'.$page, now()->addMinutes(5), function() use($pid) {
|
||||
$timeago = Carbon::now()->subMonths(6);
|
||||
$notifications = Notification::whereHas('actor')
|
||||
->whereProfileId($pid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue