update 去除了开发模式下的缓存

This commit is contained in:
2021-05-26 17:27:31 +08:00
parent c833d4a1f4
commit 249007c237
6 changed files with 32 additions and 1 deletions

View File

@@ -129,7 +129,10 @@ namespace Ewide.Core.Service
{
var config = await _sysConfigRep.DetachedEntities.FirstOrDefaultAsync(u => u.Code == code);
value = config != null ? config.Value : "";
#if DEBUG
#else
await _sysCacheService.SetAsync(code, value);
#endif
}
return value;
}
@@ -142,7 +145,10 @@ namespace Ewide.Core.Service
/// <returns></returns>
public async Task UpdateConfigCache(string code, object value)
{
#if DEBUG
#else
await _sysCacheService.SetAsync(code, value);
#endif
}
/// <summary>