mirror of
https://github.com/archtechx/tenancy.git
synced 2026-06-20 22:54:05 +00:00
Expand CacheTenancyBootstrapper docblock
Mention that it's not intended to be used with database cache stores (it *can* be used with db cache stores, there's just a little unexpected behavior).
This commit is contained in:
parent
c6ba6a574c
commit
602a151104
1 changed files with 9 additions and 0 deletions
|
|
@ -16,6 +16,15 @@ use Stancl\Tenancy\Contracts\Tenant;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Makes cache tenant-aware by applying a prefix.
|
* Makes cache tenant-aware by applying a prefix.
|
||||||
|
*
|
||||||
|
* Using this bootstrapper together with DatabaseTenancyBootstrapper
|
||||||
|
* with a database cache store results in double scoping. The store is scoped by
|
||||||
|
* DB connection (entries go into the tenant's database) *and* by the prefix. This is
|
||||||
|
* harmless for most use cases, but can produce unexpected behavior.
|
||||||
|
*
|
||||||
|
* If you're using a database cache store, use DatabaseCacheBootstrapper instead of this one.
|
||||||
|
*
|
||||||
|
* @see Stancl\Tenancy\Bootstrappers\DatabaseCacheBootstrapper
|
||||||
*/
|
*/
|
||||||
class CacheTenancyBootstrapper implements TenancyBootstrapper
|
class CacheTenancyBootstrapper implements TenancyBootstrapper
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue