mirror of
https://github.com/bitwarden/server
synced 2025-12-21 02:33:30 +00:00
mappedDomain is cache key
This commit is contained in:
@@ -46,8 +46,7 @@ namespace Bit.Icons.Controllers
|
||||
}
|
||||
|
||||
var mappedDomain = _domainMappingService.MapDomain(uri.Host);
|
||||
var cacheKey = $"{mappedDomain}";
|
||||
var icon = await _memoryCache.GetOrCreateAsync(cacheKey, async entry =>
|
||||
var icon = await _memoryCache.GetOrCreateAsync(mappedDomain, async entry =>
|
||||
{
|
||||
entry.AbsoluteExpiration = DateTime.UtcNow.AddHours(_iconsSettings.CacheHours);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user