优化用户菜单缓存,提示主页面加载速度

This commit is contained in:
thinkgem
2018-10-02 23:17:26 +08:00
parent 0c84378419
commit 021672b180

View File

@@ -334,8 +334,8 @@ public class LoginController extends BaseController{
if (user.isSuperAdmin() && StringUtils.isNotBlank(sysCode)){
if (!StringUtils.equals(principal.getParam("sysCode"), sysCode)){
principal.setParam("sysCode", sysCode);
UserUtils.removeCacheByKeyPrefix(UserUtils.CACHE_MENU_LIST);
UserUtils.removeCache(UserUtils.CACHE_AUTH_INFO);
UserUtils.removeCache(UserUtils.CACHE_MENU_LIST);
}
}
return REDIRECT + adminPath + "/index";