From 7092f4c856e6c43bb40b68af277002afc2d3ca89 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Wed, 14 Dec 2022 16:21:45 +0100 Subject: [PATCH] Make CacheManager::$addTags default to `true` --- src/CacheManager.php | 2 +- tests/CacheManagerTest.php | 2 -- tests/GlobalCacheTest.php | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/CacheManager.php b/src/CacheManager.php index 14965de9..e316c3ea 100644 --- a/src/CacheManager.php +++ b/src/CacheManager.php @@ -11,7 +11,7 @@ use Illuminate\Cache\Repository; class CacheManager extends BaseCacheManager { - public static bool $addTags = false; + public static bool $addTags = true; /** * Add tags and forward the call to the inner cache store. diff --git a/tests/CacheManagerTest.php b/tests/CacheManagerTest.php index 49f4dfe9..fd32cd07 100644 --- a/tests/CacheManagerTest.php +++ b/tests/CacheManagerTest.php @@ -14,8 +14,6 @@ beforeEach(function () { CacheTenancyBootstrapper::class, ]]); - CacheManager::$addTags = true; - Event::listen(TenancyInitialized::class, BootstrapTenancy::class); }); diff --git a/tests/GlobalCacheTest.php b/tests/GlobalCacheTest.php index fad1764a..f3240614 100644 --- a/tests/GlobalCacheTest.php +++ b/tests/GlobalCacheTest.php @@ -17,8 +17,6 @@ beforeEach(function () { CacheTenancyBootstrapper::class, ]]); - CacheManager::$addTags = true; - Event::listen(TenancyInitialized::class, BootstrapTenancy::class); Event::listen(TenancyEnded::class, RevertToCentralContext::class); });