From c960d70fc79ac3a62c794617fb70812be568a726 Mon Sep 17 00:00:00 2001 From: wangqing <408564126@qq.com> Date: Tue, 19 Mar 2024 10:06:33 +0800 Subject: [PATCH] fix commentlist cache evict --- .../src/main/java/com/luoo/comment/service/CommentService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luoo_comment/src/main/java/com/luoo/comment/service/CommentService.java b/luoo_comment/src/main/java/com/luoo/comment/service/CommentService.java index 3bb48b7..c8e4665 100644 --- a/luoo_comment/src/main/java/com/luoo/comment/service/CommentService.java +++ b/luoo_comment/src/main/java/com/luoo/comment/service/CommentService.java @@ -143,7 +143,7 @@ public class CommentService { commentDao.save(comment); cacheChannel.clear(Constants.J2CACHE_REGION_JOURNAL_COMMENT_PAGE_CHILDREN+"_"+comment.getRootId()); cacheChannel.clear(Constants.J2CACHE_REGION_JOURNAL_COMMENT_PAGE_HOT+"_"+comment.getRootJournalId()); - + cacheChannel.clear(Constants.J2CACHE_REGION_JOURNAL_COMMENT_PAGE_NEW+"_"+comment.getRootJournalId()); cacheChannel.evict(Constants.J2CACHE_REGION_JOURNAL_HOT_COMMENTS,comment.getRootJournalId()); rabbitTemplate.convertAndSend(Constants.RABBIT_MESSAGE_CLEAN_JOURANL_QUERY_PAGE,comment.getRootJournalId()); return comment;