【7.1.6】【theme】更新清除缓存操作

pull/25/head
fengshuonan 2022-01-12 16:34:05 +08:00
parent d7a2e33e74
commit ed907d1dae
1 changed files with 19 additions and 0 deletions

View File

@ -141,6 +141,9 @@ public class SysThemeServiceImpl extends ServiceImpl<SysThemeMapper, SysTheme> i
}
this.removeById(sysTheme);
// 清除主题缓存
this.clearThemeCache();
}
@Override
@ -151,6 +154,9 @@ public class SysThemeServiceImpl extends ServiceImpl<SysThemeMapper, SysTheme> i
BeanUtil.copyProperties(sysThemeRequest, sysTheme);
this.updateById(sysTheme);
// 清除主题缓存
this.clearThemeCache();
}
@Override
@ -234,6 +240,9 @@ public class SysThemeServiceImpl extends ServiceImpl<SysThemeMapper, SysTheme> i
}
}
this.updateById(sysTheme);
// 清除主题缓存
this.clearThemeCache();
}
@Override
@ -395,4 +404,14 @@ public class SysThemeServiceImpl extends ServiceImpl<SysThemeMapper, SysTheme> i
return sysThemeTemplate.getTemplateId();
}
/**
*
*
* @author fengshuonan
* @date 2022/1/12 12:49
*/
private void clearThemeCache() {
themeCacheApi.remove(SystemConstants.THEME_GUNS_PLATFORM);
}
}