Update timing scadenza cache articoli non eliminabili

This commit is contained in:
Samuele Locatelli
2026-05-28 15:35:33 +02:00
parent 2f4bb9c1b8
commit 8d9c450ed9
+2 -1
View File
@@ -772,7 +772,7 @@ namespace MP.SPEC.Data
var listInKit = await dbController.ArticoliInKitAsync();
_listCodArtInKit = new HashSet<string>(listInKit.Select(x => x.CodArticolo));
_artCacheExpiry = DateTime.Now.AddMinutes(5); // TTL ragionevole per la cache locale
_artCacheExpiry = DateTime.Now.AddMinutes(15); // TTL ragionevole per la cache locale
}
catch (Exception ex)
{
@@ -941,6 +941,7 @@ namespace MP.SPEC.Data
{
await _cache.ClearAsync(allowFailSafe: false);
_configData.Clear();
_artCacheExpiry = DateTime.Now.AddHours(-1);
return true;
}