mirror of
https://github.com/bitwarden/server.git
synced 2025-07-14 14:17:35 -05: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