Use AbsoluteExpiration w/ 20 seconds
MODIFY
MagicalCryptoWallet.Backend/Controllers/BlockchainController.cs
MagicalCryptoWallet.Backend/Controllers/BlockchainController.cs
@@ -170,7 +170,7 @@ namespace MagicalCryptoWallet.Backend.Controllers
}
var cacheEntryOptions = new MemoryCacheEntryOptions()
- .SetSlidingExpiration(TimeSpan.FromSeconds(10));
+ .SetAbsoluteExpiration(TimeSpan.FromSeconds(20));
_cache.Set(nameof(GetExchangeRatesAsync), exchangeRates, cacheEntryOptions);
}

Use AbsoluteExpiration w/ 20 seconds