mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
null cached entries are high priority
This commit is contained in:
@ -67,7 +67,8 @@ namespace Bit.Icons.Controllers
|
||||
_memoryCache.Set(mappedDomain, icon, new MemoryCacheEntryOptions
|
||||
{
|
||||
AbsoluteExpirationRelativeToNow = new TimeSpan(_iconsSettings.CacheHours, 0, 0),
|
||||
Size = icon?.Image.Length ?? 0
|
||||
Size = icon?.Image.Length ?? 0,
|
||||
Priority = icon == null ? CacheItemPriority.High : CacheItemPriority.Normal
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user