update timing cache stato prod x setPzCount

This commit is contained in:
Samuele Locatelli
2026-04-15 12:53:53 +02:00
parent 1e969171a8
commit bf1973e425
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -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);
}
+1 -1
View File
@@ -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)
{