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) {