wzq пре 5 година
родитељ
комит
01cc8018b9
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      app/Traits/PostTrait.php
  2. 1 1
      app/Transformers/Post/CommentTransformer.php

+ 1 - 1
app/Traits/PostTrait.php

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

+ 1 - 1
app/Transformers/Post/CommentTransformer.php

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