Browse Source

优化缓存清空逻辑

test
smallchill 5 years ago
parent
commit
0882c51c00
  1. 5
      blade-auth/src/main/java/org/springblade/auth/endpoint/BladeTokenEndPoint.java

5
blade-auth/src/main/java/org/springblade/auth/endpoint/BladeTokenEndPoint.java

@ -80,13 +80,14 @@ public class BladeTokenEndPoint {
@GetMapping("/oauth/clear-cache")
public Kv clearCache() {
CacheUtil.clear(CacheConstant.BIZ_CACHE);
CacheUtil.clear(CacheConstant.MENU_CACHE);
CacheUtil.clear(CacheConstant.USER_CACHE);
CacheUtil.clear(CacheConstant.DICT_CACHE);
CacheUtil.clear(CacheConstant.FLOW_CACHE);
CacheUtil.clear(CacheConstant.SYS_CACHE);
CacheUtil.clear(CacheConstant.RESOURCE_CACHE);
CacheUtil.clear(CacheConstant.PARAM_CACHE);
CacheUtil.clear(CacheConstant.RESOURCE_CACHE);
CacheUtil.clear(CacheConstant.MENU_CACHE);
CacheUtil.clear(CacheConstant.MENU_CACHE, Boolean.FALSE);
return Kv.create().set("success", "true").set("msg", "success");
}

Loading…
Cancel
Save