mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 18:04:03 +00:00
tenancy.cache.prefix_base -> tag_base
This commit is contained in:
parent
fceddb8c4d
commit
124e747aa0
3 changed files with 3 additions and 3 deletions
|
|
@ -93,7 +93,7 @@ These changes will only apply for connections listed in `prefixed_connections`.
|
||||||
Cache keys will be tagged with a tag:
|
Cache keys will be tagged with a tag:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
config('tenancy.cache.prefix_base') . $uuid
|
config('tenancy.cache.tag_base') . $uuid
|
||||||
```
|
```
|
||||||
|
|
||||||
#### `filesystem`
|
#### `filesystem`
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ class CacheManager extends BaseCacheManager
|
||||||
{
|
{
|
||||||
public function __call($method, $parameters)
|
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 ($method === "tags") {
|
||||||
if (count($parameters == 1) && is_array($parameters[0])) {
|
if (count($parameters == 1) && is_array($parameters[0])) {
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'cache' => [
|
'cache' => [
|
||||||
'prefix_base' => 'tenant',
|
'tag_base' => 'tenant',
|
||||||
],
|
],
|
||||||
'filesystem' => [
|
'filesystem' => [
|
||||||
'suffix_base' => 'tenant',
|
'suffix_base' => 'tenant',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue