diff --git a/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs b/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs
index d6517e6264..7dfda73bf4 100644
--- a/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs
+++ b/MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs
@@ -141,18 +141,7 @@ namespace MediaBrowser.Controller.Extensions
/// Whether second level cache disabled.
public static bool GetSqliteSecondLevelCacheDisabled(this IConfiguration configuration)
{
- var disableSecondLevelCacheConfig = configuration.GetValue(SqliteDisableSecondLevelCacheKey);
- var disableSecondLevelCache = false;
- if (disableSecondLevelCacheConfig is not null)
- {
- disableSecondLevelCache = disableSecondLevelCacheConfig.ToUpperInvariant() switch
- {
- "FALSE" or "NO" or "0" => false,
- _ => true
- };
- }
-
- return disableSecondLevelCache;
+ return configuration.GetValue(SqliteDisableSecondLevelCacheKey);
}
}
}