Update PublicTimelineService

This commit is contained in:
Daniel Supernault 2021-07-07 01:58:39 -06:00
parent 7b758135a3
commit 08467d52d5
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -48,7 +48,7 @@ class PublicTimelineService {
public static function add($val)
{
if(self::count() > 400) {
if(config('database.redis.client') === 'phpredis' && self::count() > 400) {
Redis::zpopmin(self::CACHE_KEY);
}