diff --git a/MP.IOC/Components/Pages/CallStats.razor b/MP.IOC/Components/Pages/CallStats.razor index 8af9d9a4..f1f40dcf 100644 --- a/MP.IOC/Components/Pages/CallStats.razor +++ b/MP.IOC/Components/Pages/CallStats.razor @@ -79,7 +79,7 @@
- Andamento chiamate @currDetail + History @currDetail
diff --git a/MP.IOC/Data/MpDataService.cs b/MP.IOC/Data/MpDataService.cs index 756ce5f8..b7bb5830 100644 --- a/MP.IOC/Data/MpDataService.cs +++ b/MP.IOC/Data/MpDataService.cs @@ -1730,7 +1730,6 @@ namespace MP.IOC.Data // 2. Se non c'รจ in cache, carichiamo/resettiamo tutto if (val == null) { - //var data = ResetDatiMacchina(idxMacchina); var data = await ResetDatiMacchinaAsync(idxMacchina); data.TryGetValue("insEnabled", out val); } @@ -4954,9 +4953,6 @@ namespace MP.IOC.Data // inizio con un bel reset... await RedisFlushPatternAsync(pattern); Dictionary? result = new Dictionary(); - Stopwatch stopWatch = new Stopwatch(); - stopWatch.Start(); - string readType = "DB"; var dbResult = await IocDbController.VMSFDGetByMaccAsync(idxMacc); // converto in formato dizionario... @@ -4997,7 +4993,7 @@ namespace MP.IOC.Data result.Add("Slave", isSlave); // durata cache in secondi dal valore insEnabled... - double numSecCache = 60 * ((result["insEnabled"].ToLower() == "true") ? redisShortTimeCache / 4 : redisShortTimeCache); + double numSecCache = 60 * ((result["insEnabled"].ToLower() == "true") ? redisShortTimeCache : redisLongTimeCache); // ...e salvo... await RedisSetHashDictAsync(currHash, result, numSecCache); @@ -5005,9 +5001,6 @@ namespace MP.IOC.Data { result = new Dictionary(); } - stopWatch.Stop(); - TimeSpan ts = stopWatch.Elapsed; - Log.Debug($"GetCurrMSFDMacc | Read from {readType}: {ts.TotalMilliseconds}ms"); return result; } diff --git a/MP.IOC/appsettings.json b/MP.IOC/appsettings.json index 281c7e6f..b54e18dc 100644 --- a/MP.IOC/appsettings.json +++ b/MP.IOC/appsettings.json @@ -85,8 +85,8 @@ "RedisWeight": true, "RoutePath": "/api/RIOB", "SafePages": "Index", - "redisLongTimeCache": 15, - "redisShortTimeCache": 3 + "redisLongTimeCache": 60, + "redisShortTimeCache": 30 }, "ConnectionStrings": { "MP.Data": "Server=SQL2016DEV;Database=MoonPro; User ID=sa;Password=keyhammer16; integrated security=False; App=MP.IOC;",