You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it really necessary to clear all facade instances from within Stancl\Tenancy\Bootstrappers\CacheTenancyBootstrapper:: resetFacadeCache? Couldn't the method be changed from:
public function resetFacadeCache()
{
Cache::clearResolvedInstances();
}
to
public function resetFacadeCache()
{
Facade::clearResolvedInstance('cache');
}
With the bootstrapper the way it is now, running $tenant->run() will clear all resolved facades, not just the cache facade, which seems like a bug at first glance. Especially if wanting to run things in tenants from central and still expect central to have its resolved facades after the fact.
The text was updated successfully, but these errors were encountered:
Is it really necessary to clear all facade instances from within
Stancl\Tenancy\Bootstrappers\CacheTenancyBootstrapper:: resetFacadeCache
? Couldn't the method be changed from:to
With the bootstrapper the way it is now, running
$tenant->run()
will clear all resolved facades, not just the cache facade, which seems like a bug at first glance. Especially if wanting to run things in tenants from central and still expect central to have its resolved facades after the fact.The text was updated successfully, but these errors were encountered: