Explorar o código

Update PublicTimelineService

Daniel Supernault %!s(int64=4) %!d(string=hai) anos
pai
achega
08467d52d5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Services/PublicTimelineService.php

+ 1 - 1
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);
 		}