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); });