Unverified Commit 08467d52 authored by Daniel Supernault's avatar Daniel Supernault
Browse files

Update PublicTimelineService

parent 7b758135
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment