From 124e747aa0c18fc9bf2d68f775e45fecbc267b81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Thu, 7 Feb 2019 22:07:02 +0100 Subject: [PATCH] tenancy.cache.prefix_base -> tag_base --- README.md | 2 +- src/CacheManager.php | 2 +- src/config/tenancy.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c6d414d3..f3ecda3a 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ These changes will only apply for connections listed in `prefixed_connections`. Cache keys will be tagged with a tag: ```php -config('tenancy.cache.prefix_base') . $uuid +config('tenancy.cache.tag_base') . $uuid ``` #### `filesystem` diff --git a/src/CacheManager.php b/src/CacheManager.php index 07b10f28..b912c4d8 100644 --- a/src/CacheManager.php +++ b/src/CacheManager.php @@ -8,7 +8,7 @@ class CacheManager extends BaseCacheManager { public function __call($method, $parameters) { - $tags = [config('tenancy.cache.prefix_base') . tenant('uuid')]; + $tags = [config('tenancy.cache.tag_base') . tenant('uuid')]; if ($method === "tags") { if (count($parameters == 1) && is_array($parameters[0])) { diff --git a/src/config/tenancy.php b/src/config/tenancy.php index 876c5b65..1ccea9fb 100644 --- a/src/config/tenancy.php +++ b/src/config/tenancy.php @@ -19,7 +19,7 @@ return [ ], ], 'cache' => [ - 'prefix_base' => 'tenant', + 'tag_base' => 'tenant', ], 'filesystem' => [ 'suffix_base' => 'tenant',