Ver código fonte

系统配置保存后未正确删除缓存,导致界面数据不无法显示最新数据

panda 1 ano atrás
pai
commit
cf3c55328b

+ 2 - 1
Admin.NET/Admin.NET.Core/Service/Config/SysConfigService.cs

@@ -324,6 +324,7 @@ public class SysConfigService : IDynamicApiController, ITransient
         _sysCacheService.Remove($"{CacheConst.KeyConfig}Value:{config.Code}");
         _sysCacheService.Remove($"{CacheConst.KeyConfig}Remark:{config.Code}");
         _sysCacheService.Remove($"{CacheConst.KeyConfig}{config.GroupCode}:GroupWithCache");
-        _sysCacheService.Remove($"{CacheConst.KeyConfig}{config.GroupCode}:{config.Value}");
+        _sysCacheService.Remove($"{CacheConst.KeyConfig}{config.Code}");
+
     }
 }