Merge pull request #6498 from pixelfed/shleeable-patch-9

zcard > 0 incorrectly implies the cache is fully warmed
pull/6524/head
dansup 6 months ago committed by GitHub
commit cb26e1831a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -62,7 +62,7 @@ class HashtagFollowService
public static function isWarm($hid)
{
return Redis::zcard(self::CACHE_KEY.$hid) > 0 || Redis::zscore(self::CACHE_WARMED, $hid) !== null;
return Redis::zscore(self::CACHE_WARMED, $hid) !== null;
}
public static function setWarm($hid)

Loading…
Cancel
Save