浏览代码

最火评论缓存时间

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