mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 22:14:03 +00:00
Update PrefixCacheTenancyBootstrapper.php
This commit is contained in:
parent
c5f7de4b0e
commit
2302571f6a
1 changed files with 0 additions and 8 deletions
|
|
@ -40,17 +40,9 @@ class PrefixCacheTenancyBootstrapper implements TenancyBootstrapper
|
|||
|
||||
$this->app['cache']->forgetDriver($this->storeName);
|
||||
|
||||
// This is important because the `CacheManager` will have the `$app['config']` array cached
|
||||
// with old prefixes on the `cache` instance. Simply calling `forgetDriver` only removes
|
||||
// the `$store` but doesn't update the `$app['config']`.
|
||||
$this->app->forgetInstance('cache');
|
||||
|
||||
//This is important because the Cache Repository is using an old version of the CacheManager
|
||||
$this->app->forgetInstance('cache.store');
|
||||
|
||||
// Forget the cache repository in the container
|
||||
$this->app->forgetInstance(Repository::class);
|
||||
|
||||
Cache::clearResolvedInstances();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue