1
0
Эх сурвалжийг харах

Update PublicTimelineService

Daniel Supernault 4 жил өмнө
parent
commit
08467d52d5

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