From 29fa8ffec5745af70e0c29e4ceff1a4abe66134b Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 2 Mar 2019 12:29:29 -0700 Subject: [PATCH] Update DiscoverController --- app/Http/Controllers/DiscoverController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/DiscoverController.php b/app/Http/Controllers/DiscoverController.php index 2e43b2284..2a69f97eb 100644 --- a/app/Http/Controllers/DiscoverController.php +++ b/app/Http/Controllers/DiscoverController.php @@ -37,7 +37,7 @@ class DiscoverController extends Controller $page = $request->input('page') ?? 1; $key = 'discover:tag-'.$tag->id.':page-'.$page; - $keyMinutes = $page > 1 ? 5 : 2; + $keyMinutes = $page == 1 ? 15 : 5; $posts = Cache::remember($key, now()->addMinutes($keyMinutes), function() use ($tag, $request) { return $tag->posts()