From 30d73d2694bf0e33c6a63145f3157f2a2aa1ef23 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Thu, 5 Jan 2023 16:13:00 +0100 Subject: [PATCH] Change nonTenantCacheDrivers to tenantCacheStores --- src/Bootstrappers/PrefixCacheTenancyBootstrapper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bootstrappers/PrefixCacheTenancyBootstrapper.php b/src/Bootstrappers/PrefixCacheTenancyBootstrapper.php index f213ebe6..faa12a49 100644 --- a/src/Bootstrappers/PrefixCacheTenancyBootstrapper.php +++ b/src/Bootstrappers/PrefixCacheTenancyBootstrapper.php @@ -14,7 +14,7 @@ class PrefixCacheTenancyBootstrapper implements TenancyBootstrapper { protected string|null $originalPrefix = null; protected string $storeName; - public static array $nonTenantCacheDrivers = []; + public static array $tenantCacheStores = []; public function __construct( protected Repository $config, @@ -27,7 +27,7 @@ class PrefixCacheTenancyBootstrapper implements TenancyBootstrapper $this->originalPrefix = $this->config->get('cache.prefix'); $this->storeName = $this->config->get('cache.default'); - if (! in_array($this->storeName, static::$nonTenantCacheDrivers)) { + if (in_array($this->storeName, static::$tenantCacheStores)) { $this->setCachePrefix($this->originalPrefix . $this->config->get('tenancy.cache.prefix_base') . $tenant->getTenantKey()); } }