wzq %!s(int64=5) %!d(string=hai) anos
pai
achega
7640c1c3ff
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      app/Console/Commands/UpdateReplyCount.php

+ 4 - 0
app/Console/Commands/UpdateReplyCount.php

@@ -47,6 +47,10 @@ class UpdateReplyCount extends Command
     public function handle()
     {
         $this->line("开始更新评论回复数量");
+        
+        for($i=1;$i<1000;$i++){
+            Redis::del('post_new_comment_'.$i);
+        }
 
         $bar = $this->output->createProgressBar($this->postComment->where('parent_id', 0)->count());
         $this->postComment->where('parent_id', 0)->chunk(100, function($comments) use ($bar){