From 2302571f6ac80d8a7f51aa8557e5e5129a8425b7 Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Tue, 22 Nov 2022 14:13:10 +0500 Subject: [PATCH] Update PrefixCacheTenancyBootstrapper.php --- src/Bootstrappers/PrefixCacheTenancyBootstrapper.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Bootstrappers/PrefixCacheTenancyBootstrapper.php b/src/Bootstrappers/PrefixCacheTenancyBootstrapper.php index 995de0ba..96679dc9 100644 --- a/src/Bootstrappers/PrefixCacheTenancyBootstrapper.php +++ b/src/Bootstrappers/PrefixCacheTenancyBootstrapper.php @@ -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(); } }