Update timing scadenza cache articoli non eliminabili
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user