소스 검색

最火评论缓存时间

wzq 5 년 전
부모
커밋
0f4480ab2d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Traits/PostTrait.php

+ 1 - 1
app/Traits/PostTrait.php

@@ -117,7 +117,7 @@ trait PostTrait
                 ];
             }
             Redis::SET($commentKey, json_encode($comment));
-            Redis::EXPIRE($commentKey, 3);
+            Redis::EXPIRE($commentKey, 300);
         }
         return $comment;
     }