1
0
Fork 0
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:
lukinovec 2026-06-09 14:18:30 +02:00
parent c6ba6a574c
commit 602a151104

View file

@ -16,6 +16,15 @@ use Stancl\Tenancy\Contracts\Tenant;
/**
* 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
{