diff --git a/MP.SPEC/Data/MpDataService.cs b/MP.SPEC/Data/MpDataService.cs index f8bf8e65..4fbfe663 100644 --- a/MP.SPEC/Data/MpDataService.cs +++ b/MP.SPEC/Data/MpDataService.cs @@ -613,8 +613,11 @@ namespace MP.SPEC.Data result = await Task.FromResult(dbController.FluxLogGetLastFilt(DtMax, DtMin, IdxMacchina, CodFlux, MaxRec)); // serializzo e salvo... rawData = JsonConvert.SerializeObject(result); - var canCache = await tryGetConfig("SPEC_ParametriEnableReidsCache"); - if (canCache != "false") + if (string.IsNullOrEmpty(canCacheParametri)) + { + canCacheParametri = await tryGetConfig("SPEC_ParametriEnableRedisCache"); + } + if (canCacheParametri != "false") { redisDb.StringSet(currKey, rawData, TimeSpan.FromSeconds(redisCacheSec / 2)); } @@ -1377,6 +1380,12 @@ namespace MP.SPEC.Data #endregion Protected Fields + #region Protected Properties + + protected string canCacheParametri { get; set; } = ""; + + #endregion Protected Properties + #region Protected Methods /// diff --git a/MP.SPEC/MP.SPEC.csproj b/MP.SPEC/MP.SPEC.csproj index e35ea786..36b1e18a 100644 --- a/MP.SPEC/MP.SPEC.csproj +++ b/MP.SPEC/MP.SPEC.csproj @@ -5,7 +5,7 @@ enable enable MP.SPEC - 6.16.2212.1211 + 6.16.2212.1212 diff --git a/MP.SPEC/Resources/ChangeLog.html b/MP.SPEC/Resources/ChangeLog.html index 58bba000..4ffc3cea 100644 --- a/MP.SPEC/Resources/ChangeLog.html +++ b/MP.SPEC/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2212.1211

+

Versione: 6.16.2212.1212


Note di rilascio: