1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 17:24:03 +00:00

Make CacheManager::$addTags default to true

This commit is contained in:
lukinovec 2022-12-14 16:21:45 +01:00
parent 87efdd2954
commit 7092f4c856
3 changed files with 1 additions and 5 deletions

View file

@ -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.

View file

@ -14,8 +14,6 @@ beforeEach(function () {
CacheTenancyBootstrapper::class,
]]);
CacheManager::$addTags = true;
Event::listen(TenancyInitialized::class, BootstrapTenancy::class);
});

View file

@ -17,8 +17,6 @@ beforeEach(function () {
CacheTenancyBootstrapper::class,
]]);
CacheManager::$addTags = true;
Event::listen(TenancyInitialized::class, BootstrapTenancy::class);
Event::listen(TenancyEnded::class, RevertToCentralContext::class);
});