From 395efc94a771d2feb83af8d13964ca1ff6ecf476 Mon Sep 17 00:00:00 2001 From: cvium Date: Fri, 21 Oct 2022 15:10:47 +0200 Subject: [PATCH] remove unnecessary skipcommand since SQLite does not have NEWID --- .../Extensions/ServiceCollectionExtensions.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs b/Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs index 0bf5ca1d14..f98a0aede8 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)));