From 3b53c5e7803290db10f0de9376f370704e0b9416 Mon Sep 17 00:00:00 2001 From: VahidN Date: Fri, 5 Apr 2024 20:30:20 +0330 Subject: [PATCH] Improve the EnableCachingInterceptor --- .../EFCoreSecondLevelCacheInterceptor.csproj | 2 +- .../EFCoreSecondLevelCacheOptions.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EFCoreSecondLevelCacheInterceptor/EFCoreSecondLevelCacheInterceptor.csproj b/src/EFCoreSecondLevelCacheInterceptor/EFCoreSecondLevelCacheInterceptor.csproj index b28a8d8..5f64803 100644 --- a/src/EFCoreSecondLevelCacheInterceptor/EFCoreSecondLevelCacheInterceptor.csproj +++ b/src/EFCoreSecondLevelCacheInterceptor/EFCoreSecondLevelCacheInterceptor.csproj @@ -1,7 +1,7 @@ Entity Framework Core Second Level Caching Library. - 4.4.0 + 4.4.1 Vahid Nasiri net8.0;net7.0;net6.0;net5.0;netstandard2.1;netstandard2.0;net462;netcoreapp3.1; true diff --git a/src/EFCoreSecondLevelCacheInterceptor/EFCoreSecondLevelCacheOptions.cs b/src/EFCoreSecondLevelCacheInterceptor/EFCoreSecondLevelCacheOptions.cs index 93b5a21..1038324 100644 --- a/src/EFCoreSecondLevelCacheInterceptor/EFCoreSecondLevelCacheOptions.cs +++ b/src/EFCoreSecondLevelCacheInterceptor/EFCoreSecondLevelCacheOptions.cs @@ -353,7 +353,7 @@ public EFCoreSecondLevelCacheOptions UseDbCallsIfCachingProviderIsDown(TimeSpan /// public EFCoreSecondLevelCacheOptions EnableCachingInterceptor(bool enable = true) { - Settings.IsCachingInterceptorEnabled = true; + Settings.IsCachingInterceptorEnabled = enable; return this; }