From 796f8ca78c2e1c1b1403b14c32cdbba801bf8970 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 19 Jul 2019 21:37:37 -0600 Subject: [PATCH] Update ExportSettings controller --- app/Http/Controllers/Settings/ExportSettings.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Settings/ExportSettings.php b/app/Http/Controllers/Settings/ExportSettings.php index b6b803451..91f8c9760 100644 --- a/app/Http/Controllers/Settings/ExportSettings.php +++ b/app/Http/Controllers/Settings/ExportSettings.php @@ -103,7 +103,7 @@ trait ExportSettings $this->validate($request, [ 'type' => 'required|string|in:ap,api' ]); - $limit = 300; + $limit = 500; $profile = Auth::user()->profile; $type = 'ap'; @@ -116,7 +116,7 @@ trait ExportSettings $filename = 'outbox.json'; if($type == 'ap') { - $data = Cache::remember('account:export:profile:statuses:ap:'.Auth::user()->profile->id, now()->addDays(7), function() { + $data = Cache::remember('account:export:profile:statuses:ap:'.Auth::user()->profile->id, now()->addHours(1), function() { $profile = Auth::user()->profile->statuses; $fractal = new Fractal\Manager(); $fractal->setSerializer(new ArraySerializer()); @@ -125,7 +125,7 @@ trait ExportSettings }); } else { $filename = 'api-statuses.json'; - $data = Cache::remember('account:export:profile:statuses:api:'.Auth::user()->profile->id, now()->addDays(7), function() { + $data = Cache::remember('account:export:profile:statuses:api:'.Auth::user()->profile->id, now()->addHours(1), function() { $profile = Auth::user()->profile->statuses; $fractal = new Fractal\Manager(); $fractal->setSerializer(new ArraySerializer());