update 去除了开发模式下的缓存
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user