1
0
Fork 0

Update StatusHashtagService, reduce cached hashtag count ttl from 6 hours to 5 minutes

This commit is contained in:
Daniel Supernault 2019-10-17 00:19:02 -06:00
parent 634910c3ca
commit 126886e841
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 1 additions and 1 deletions

View File

@ -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();
});