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() diff --git a/resources/views/discover/tags/show.blade.php b/resources/views/discover/tags/show.blade.php index 4ea1fc24b..79b69afd8 100644 --- a/resources/views/discover/tags/show.blade.php +++ b/resources/views/discover/tags/show.blade.php @@ -15,9 +15,6 @@
-- {{$tag->posts_count}} posts -