From 126886e841889a6cf83374afe7f10fc2675346ce Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 17 Oct 2019 00:19:02 -0600 Subject: [PATCH] Update StatusHashtagService, reduce cached hashtag count ttl from 6 hours to 5 minutes --- app/Services/StatusHashtagService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/StatusHashtagService.php b/app/Services/StatusHashtagService.php index 6107c293b..ef8c80a83 100644 --- a/app/Services/StatusHashtagService.php +++ b/app/Services/StatusHashtagService.php @@ -57,7 +57,7 @@ class StatusHashtagService { public static function count($id) { $key = 'pf:services:status-hashtag:count:' . $id; - $ttl = now()->addHours(6); + $ttl = now()->addMinutes(5); return Cache::remember($key, $ttl, function() use($id) { return StatusHashtag::whereHashtagId($id)->count(); });