Update PublicTimelineService

pull/2847/head
Daniel Supernault 4 years ago
parent 7b758135a3
commit 08467d52d5
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -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);
}

Loading…
Cancel
Save