diff --git a/src/ZiggyCreatures.FusionCache/FusionCache_Async.cs b/src/ZiggyCreatures.FusionCache/FusionCache_Async.cs index 036a3c95..afe47a73 100644 --- a/src/ZiggyCreatures.FusionCache/FusionCache_Async.cs +++ b/src/ZiggyCreatures.FusionCache/FusionCache_Async.cs @@ -172,7 +172,7 @@ public partial class FusionCache Task? factoryTask = null; - var timeout = options.GetAppropriateFactoryTimeout(memoryEntry is object || distributedEntry is object); + var timeout = options.GetAppropriateFactoryTimeout(memoryEntry is object || distributedEntry is object || failSafeDefaultValue.HasValue); if (_logger?.IsEnabled(LogLevel.Debug) ?? false) _logger.LogDebug("FUSION (O={CacheOperationId} K={CacheKey}): calling the factory (timeout={Timeout})", operationId, key, timeout.ToLogString_Timeout()); diff --git a/src/ZiggyCreatures.FusionCache/FusionCache_Sync.cs b/src/ZiggyCreatures.FusionCache/FusionCache_Sync.cs index 6d5e8a27..27b5811e 100644 --- a/src/ZiggyCreatures.FusionCache/FusionCache_Sync.cs +++ b/src/ZiggyCreatures.FusionCache/FusionCache_Sync.cs @@ -172,7 +172,7 @@ public partial class FusionCache Task? factoryTask = null; - var timeout = options.GetAppropriateFactoryTimeout(memoryEntry is object || distributedEntry is object); + var timeout = options.GetAppropriateFactoryTimeout(memoryEntry is object || distributedEntry is object || failSafeDefaultValue.HasValue); if (_logger?.IsEnabled(LogLevel.Debug) ?? false) _logger.LogDebug("FUSION (O={CacheOperationId} K={CacheKey}): calling the factory (timeout={Timeout})", operationId, key, timeout.ToLogString_Timeout());