-
-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.x] Cache prefix mode for separating tenant caches #1014
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #1014 +/- ##
============================================
+ Coverage 89.71% 89.96% +0.25%
- Complexity 575 591 +16
============================================
Files 138 139 +1
Lines 1769 1814 +45
============================================
+ Hits 1587 1632 +45
Misses 182 182 ☔ View full report in Codecov by Sentry. |
Everything seems to be completed here, so a summary of the changes:
|
@stancl does this change fix issues related to why Laravel officially undocumented cache tags (due to memory leaks, according to them)? |
No, it just lets us support many more drivers more reliably. |
closes #531
This PR adds support for cache prefix mode for separating tenant caches using a bootstrapper that can be enabled. The bootstrapper simply adds the prefix for cache keys.
Usage
enable bootstrapper in the
tenancy.php
config.That's it. Your cache keys are prefixed now.
The cache will behave like this.