From 7ea8233a611e6d2d116494f75c329dfa56ee594d Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 18 Apr 2019 22:47:20 -0600 Subject: [PATCH] Update SettingsController --- app/Http/Controllers/SettingsController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index a3f76656..66f68416 100644 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -74,7 +74,7 @@ class SettingsController extends Controller public function exportFollowing() { - $data = Cache::remember('account:export:profile:following:'.Auth::user()->profile->id, now()->addMinutes(1440), function() { + $data = Cache::remember('account:export:profile:following:'.Auth::user()->profile->id, now()->addMinutes(60), function() { return Auth::user()->profile->following()->get()->map(function($i) { return $i->url(); }); @@ -86,7 +86,7 @@ class SettingsController extends Controller public function exportFollowers() { - $data = Cache::remember('account:export:profile:followers:'.Auth::user()->profile->id, now()->addMinutes(1440), function() { + $data = Cache::remember('account:export:profile:followers:'.Auth::user()->profile->id, now()->addMinutes(60), function() { return Auth::user()->profile->followers()->get()->map(function($i) { return $i->url(); }); @@ -105,7 +105,7 @@ class SettingsController extends Controller if(!$exists) { return redirect()->back(); } - $data = Cache::remember('account:export:profile:muteblocklist:'.Auth::user()->profile->id, now()->addMinutes(1440), function() use($profile) { + $data = Cache::remember('account:export:profile:muteblocklist:'.Auth::user()->profile->id, now()->addMinutes(60), function() use($profile) { return json_encode([ 'muted' => $profile->mutedProfileUrls(), 'blocked' => $profile->blockedProfileUrls()