diff --git a/MP.Data/Services/IOC/IocService.cs b/MP.Data/Services/IOC/IocService.cs
index 2595f6cf..d3ad3c82 100644
--- a/MP.Data/Services/IOC/IocService.cs
+++ b/MP.Data/Services/IOC/IocService.cs
@@ -1044,7 +1044,7 @@ namespace MP.Data.Services.IOC
///
private async Task StatoProdMacchinaAsync(string idxMacchina, DateTime dtReq, bool forceDb = false)
{
- string cKey = $"{MP.Data.Utils.redisStatoProd}:{idxMacchina}:{dtReq:HHmm}";
+ string cKey = $"{MP.Data.Utils.redisStatoProd}:{idxMacchina}";
return await GetOrFetchAsync(
operationName: "StatoProdMacchinaAsync",
cacheKey: cKey,
@@ -1074,7 +1074,7 @@ namespace MP.Data.Services.IOC
#endif
return await _repo.StatoProdMacchinaAsync(idxMacchina, dtReq);
},
- expiration: GetRandTOut(30),
+ expiration: GetRandTOut(redisShortTimeCache),
tagList: ["IOC_StatoProd", cKey, idxMacchina]
);
}
diff --git a/MP.IOC/MP.IOC.csproj b/MP.IOC/MP.IOC.csproj
index fc29050c..5b48ca5e 100644
--- a/MP.IOC/MP.IOC.csproj
+++ b/MP.IOC/MP.IOC.csproj
@@ -4,7 +4,7 @@
net8.0
enable
enable
- 8.16.2606.1118
+ 8.16.2606.1119
diff --git a/MP.IOC/Resources/ChangeLog.html b/MP.IOC/Resources/ChangeLog.html
index 399acdde..d86571ba 100644
--- a/MP.IOC/Resources/ChangeLog.html
+++ b/MP.IOC/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
Modulo MP-IOC
- Versione: 8.16.2606.1118
+ Versione: 8.16.2606.1119
Note di rilascio:
-
diff --git a/MP.IOC/Resources/VersNum.txt b/MP.IOC/Resources/VersNum.txt
index edaf8e76..7907c963 100644
--- a/MP.IOC/Resources/VersNum.txt
+++ b/MP.IOC/Resources/VersNum.txt
@@ -1 +1 @@
-8.16.2606.1118
+8.16.2606.1119
diff --git a/MP.IOC/Resources/manifest.xml b/MP.IOC/Resources/manifest.xml
index 25228fab..05f35334 100644
--- a/MP.IOC/Resources/manifest.xml
+++ b/MP.IOC/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 8.16.2606.1118
+ 8.16.2606.1119
https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/MP.IOC.zip
https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/ChangeLog.html
false
diff --git a/MP.RIOC/Services/MetricsDbFlushService.cs b/MP.RIOC/Services/MetricsDbFlushService.cs
index 53f4d415..a95fce6f 100644
--- a/MP.RIOC/Services/MetricsDbFlushService.cs
+++ b/MP.RIOC/Services/MetricsDbFlushService.cs
@@ -184,7 +184,7 @@ namespace MP.RIOC.Services
}
else
{
- isOrphanKey = keyTtl.Value.TotalSeconds < 0 || keyTtl.Value.TotalHours > 30.25 * 24;
+ isOrphanKey = keyTtl.Value.TotalSeconds < 0 || keyTtl.Value.TotalDays > 30.25;
}
// Se è orfana e abbiamo il permesso, segnamola per la cancellazione
@@ -336,7 +336,7 @@ namespace MP.RIOC.Services
}
else
{
- isOrphanKey = keyTtl.Value.TotalSeconds < 0 || keyTtl.Value.TotalHours > 15.25 * 24;
+ isOrphanKey = keyTtl.Value.TotalSeconds < 0 || keyTtl.Value.TotalDays > 15.25;
}
// Se è orfana e abbiamo il permesso, segnamola per la cancellazione
@@ -438,7 +438,7 @@ namespace MP.RIOC.Services
var p = relativeKey.Split(':');
if (p.Length < 4) return false;
- meta.IsHourType = p[1].Equals("hour", StringComparison.InvariantCultureIgnoreCase);
+ meta.IsHourType = p[1].Contains("hour", StringComparison.InvariantCultureIgnoreCase);
meta.Dest = p[2];
if (meta.IsHourType)
{