From 8d9c450ed962a343c4214380d7a3e2636c60fb3d Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 28 May 2026 15:35:33 +0200 Subject: [PATCH] Update timing scadenza cache articoli non eliminabili --- MP.SPEC/Data/MpDataService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MP.SPEC/Data/MpDataService.cs b/MP.SPEC/Data/MpDataService.cs index 34d7a820..64bf7064 100644 --- a/MP.SPEC/Data/MpDataService.cs +++ b/MP.SPEC/Data/MpDataService.cs @@ -772,7 +772,7 @@ namespace MP.SPEC.Data var listInKit = await dbController.ArticoliInKitAsync(); _listCodArtInKit = new HashSet(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; }