mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 19:34:04 +00:00
Add nonTenantCacheDrivers check
This commit is contained in:
parent
4b0df42f8a
commit
86c388a2b6
1 changed files with 3 additions and 1 deletions
|
|
@ -27,7 +27,9 @@ class PrefixCacheTenancyBootstrapper implements TenancyBootstrapper
|
|||
$this->originalPrefix = $this->config->get('cache.prefix');
|
||||
$this->storeName = $this->config->get('cache.default');
|
||||
|
||||
$this->setCachePrefix($this->originalPrefix . $this->config->get('tenancy.cache.prefix_base') . $tenant->getTenantKey());
|
||||
if (! in_array($this->storeName, static::$nonTenantCacheDrivers)) {
|
||||
$this->setCachePrefix($this->originalPrefix . $this->config->get('tenancy.cache.prefix_base') . $tenant->getTenantKey());
|
||||
}
|
||||
}
|
||||
|
||||
public function revert(): void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue