Skip to content

Commit

Permalink
remove unnecessary skipcommand since SQLite does not have NEWID
Browse files Browse the repository at this point in the history
  • Loading branch information
cvium authored and dannymichel committed Oct 31, 2022
1 parent 96424aa commit 2dee088
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ public static IServiceCollection AddJellyfinDbContext(this IServiceCollection se
.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)));
Expand Down

0 comments on commit 2dee088

Please sign in to comment.