diff --git a/app/Services/PublicTimelineService.php b/app/Services/PublicTimelineService.php index c802269a5..e20d29ea9 100644 --- a/app/Services/PublicTimelineService.php +++ b/app/Services/PublicTimelineService.php @@ -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); }