Explorar o código

最火评论缓存时间

wzq %!s(int64=5) %!d(string=hai) anos
pai
achega
0f4480ab2d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
     }