1
0
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:
Kyle Spearrin 2018-05-29 22:38:29 -04:00
parent fd24b7afed
commit 961c0c6749

View File

@ -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
});
}
}