Include tenant context
A cache key must encode every dimension that changes its result. In a multi-tenant system that normally includes the tenant identifier.
$key = "tenant:{$tenantId}:settings";
Invalidate deliberately
Define which writes invalidate cached values and how long stale values can remain acceptable. Do not cache authorization decisions indefinitely.
Test isolation
Create two tenants with different settings and exercise the same endpoint for both. Repeat the test after warming the cache.




