mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Merge 03af8b481b into a675535e98
This commit is contained in:
commit
e00a713632
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ Note that only the **default** connection is switched. If you use another connec
|
|||
The cache tenancy bootstrapper replaces the Laravel's CacheManager instance with a custom CacheManager that adds tags with the current tenant's ids to each cache call. This scopes cache calls and lets you selectively clear tenants' caches:
|
||||
|
||||
```php
|
||||
php artisan cache:clear --tag=tenant_123
|
||||
php artisan cache:clear --tags=tenant_123
|
||||
```
|
||||
|
||||
Note that you must use a cache store that supports tagging, e.g. Redis.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue