update timing cache stato prod x setPzCount
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user