@@ -100,7 +100,7 @@ trait PostTrait
];
}
Redis::SET($commentKey, json_encode($comment));
- Redis::EXPIRE($commentKey, 300);
+ Redis::EXPIRE($commentKey, 604800);
return $comment;
@@ -43,7 +43,7 @@ class CommentTransformer extends TransformerAbstract
Redis::SET($replyKey, json_encode($reply));
- Redis::EXPIRE($replyKey, 300);
+ Redis::EXPIRE($replyKey, 604800);
$user = $this->userInfo($postComment['uid']);
return [