mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-22 13:03:16 +00:00
Update HashtagService, reduce cached_count cache ttl
This commit is contained in:
parent
4aca04729b
commit
15f29f7d79
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ class HashtagService
|
|||
|
||||
public static function count($id)
|
||||
{
|
||||
return Cache::remember('services:hashtag:public-count:by_id:' . $id, 3600, function() use($id) {
|
||||
return Cache::remember('services:hashtag:total-count:by_id:' . $id, 300, function() use($id) {
|
||||
$tag = Hashtag::find($id);
|
||||
return $tag ? $tag->cached_count ?? 0 : 0;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue