mirror of
https://github.com/bitwarden/server.git
synced 2025-02-26 03:31:34 +01:00
mappedDomain is cache key
This commit is contained in:
parent
fe01a51a51
commit
609ace6846
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user