瀏覽代碼

Update PublicTimelineService

Daniel Supernault 4 年之前
父節點
當前提交
08467d52d5
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);
 		}