소스 검색

remove unnecessary skipcommand since SQLite does not have NEWID

cvium 2 년 전
부모
커밋
395efc94a7
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs

+ 0 - 2
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)));