From 9a4db8008593647cb6728b10317680dd3152c934 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 14 Apr 2024 08:18:09 -0600 Subject: chore(deps): update dependency efcoresecondlevelcacheinterceptor to v4.4.1 (#11306) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cody Robibero --- .../Extensions/ServiceCollectionExtensions.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Jellyfin.Server.Implementations/Extensions') diff --git a/Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs b/Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs index bb8d4dd14f..3d747f2ea9 100644 --- a/Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs +++ b/Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs @@ -22,11 +22,9 @@ public static class ServiceCollectionExtensions serviceCollection.AddEFSecondLevelCache(options => options.UseMemoryCacheProvider() .CacheAllQueries(CacheExpirationMode.Sliding, TimeSpan.FromMinutes(10)) - .DisableLogging(true) .UseCacheKeyPrefix("EF_") // Don't cache null values. Remove this optional setting if it's not necessary. - .SkipCachingResults(result => - result.Value is null || (result.Value is EFTableRows rows && rows.RowsCount == 0))); + .SkipCachingResults(result => result.Value is null or EFTableRows { RowsCount: 0 })); serviceCollection.AddPooledDbContextFactory((serviceProvider, opt) => { -- cgit v1.2.3