xielin hace 5 años
padre
commit
0c26913b47
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      app/Repositories/Circle/CircleMessageRepository.php

+ 2 - 0
app/Repositories/Circle/CircleMessageRepository.php

@@ -270,8 +270,10 @@ class CircleMessageRepository
             DB::commit();
             if ($newComment->parent_id) {
                 Redis::DEL('circle_message_new_reply_' . $newComment->parent_id);
+                Log::debug('删除回复缓存'.$newComment->id);
             } else {
                 Redis::DEL('circle_message_new_comment_' . $newComment->post_id);
+                Log::debug('删除评论缓存'.$newComment->id);
             }
             $key = "community_calc_circle_score";
             Redis::sadd($key,$request['msg_id']);