Browse Source

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

panda 1 year ago
parent
commit
cf3c55328b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Admin.NET/Admin.NET.Core/Service/Config/SysConfigService.cs

+ 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}");
+
     }
 }