diff --git a/app/Services/HashtagFollowService.php b/app/Services/HashtagFollowService.php index 322914ca8..cb2d6e737 100644 --- a/app/Services/HashtagFollowService.php +++ b/app/Services/HashtagFollowService.php @@ -62,7 +62,7 @@ class HashtagFollowService public static function isWarm($hid) { - return Redis::zscore(self::CACHE_WARMED, $hid) !== null; + return Redis::zcount(self::CACHE_KEY.$hid, 0, -1) ?? Redis::zscore(self::CACHE_WARMED, $hid) != null; } public static function setWarm($hid)