From e8e80a2f9b58c66d00cc1fd4155d712fd66d371a Mon Sep 17 00:00:00 2001 From: hu177768073 <177768073@qq.com> Date: Wed, 25 Sep 2024 17:59:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bweb/src/main/java/com/bweb/controller/CmsController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bweb/src/main/java/com/bweb/controller/CmsController.java b/bweb/src/main/java/com/bweb/controller/CmsController.java index 82e0bf1..30e1311 100644 --- a/bweb/src/main/java/com/bweb/controller/CmsController.java +++ b/bweb/src/main/java/com/bweb/controller/CmsController.java @@ -98,8 +98,8 @@ public class CmsController { cmsContent.setStatus(CmsStatusEnum.status2.getStatus()); cmsContentService.editData(cmsContent); - // 加入缓存 - redisUtil.hset(CmsContentServiceImpl.CACHE_CMS_ONLINE, ""+cmsContent.getType(), cmsContent); + // 删除缓存 + redisUtil.hdel(CmsContentServiceImpl.CACHE_CMS_ONLINE, ""+cmsContent.getType()); return ResponseMsgUtil.success("操作成功"); } catch (Exception e) {