diff --git a/MP.IOC/Controllers/IOBController.cs b/MP.IOC/Controllers/IOBController.cs index 32076d15..e74a6b59 100644 --- a/MP.IOC/Controllers/IOBController.cs +++ b/MP.IOC/Controllers/IOBController.cs @@ -666,6 +666,8 @@ namespace MP.IOC.Controllers { if (string.IsNullOrEmpty(id)) return BadRequest("Missing ID"); + //Stopwatch sw = new Stopwatch(); + //sw.Start(); // Multi: gestione carattere "|" trasformato in "#" id = id.Replace("|", "#"); @@ -681,6 +683,8 @@ namespace MP.IOC.Controllers Log.Error($"Errore in SetCounter{Environment.NewLine}{exc}"); return StatusCode(StatusCodes.Status500InternalServerError, "NO"); } + //sw.Stop(); + //Log.Trace($"SetCounter | Elapsed: {sw.Elapsed.TotalMilliseconds:N2}"); return Ok(answ); } diff --git a/MP.IOC/Data/MpDataService.cs b/MP.IOC/Data/MpDataService.cs index 5cee24ae..c39b6c3a 100644 --- a/MP.IOC/Data/MpDataService.cs +++ b/MP.IOC/Data/MpDataService.cs @@ -3834,7 +3834,7 @@ namespace MP.IOC.Data result = await IocDbController.StatoProdMacchinaAsync(idxMacchina, dtReq); // serializzo e salvo... rawData = JsonConvert.SerializeObject(result); - await redisDb.StringSetAsync(currKey, rawData, TimeSpan.FromSeconds(5)); + await redisDb.StringSetAsync(currKey, rawData, TimeSpan.FromSeconds(60)); } if (result == null) {