mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 05:00:19 -05:00
null cached entries are high priority
This commit is contained in:
parent
fd24b7afed
commit
961c0c6749
@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user