aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcvium <clausvium@gmail.com>2022-10-21 15:10:47 +0200
committercvium <clausvium@gmail.com>2022-10-21 15:10:47 +0200
commit395efc94a771d2feb83af8d13964ca1ff6ecf476 (patch)
treebf3834b493530890778cfe3b44cd1819d3a6cd75
parentb836fe96857de9e39d9b565b1f57a151a82e401d (diff)
remove unnecessary skipcommand since SQLite does not have NEWID
-rw-r--r--Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs2
1 files changed, 0 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs b/Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs
index 0bf5ca1d1..f98a0aede 100644
--- a/Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs
+++ b/Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs
@@ -25,8 +25,6 @@ public static class ServiceCollectionExtensions
.CacheAllQueries(CacheExpirationMode.Sliding, TimeSpan.FromMinutes(10))
.DisableLogging(true)
.UseCacheKeyPrefix("EF_")
- .SkipCachingCommands(commandText =>
- commandText.Contains("NEWID()", StringComparison.InvariantCultureIgnoreCase))
// Don't cache null values. Remove this optional setting if it's not necessary.
.SkipCachingResults(result =>
result.Value == null || (result.Value is EFTableRows rows && rows.RowsCount == 0)));