-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Redis cache improvements #14724
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
Redis cache improvements #14724
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 7.x #14724 +/- ##
============================================
+ Coverage 64.70% 64.75% +0.04%
- Complexity 34736 34826 +90
============================================
Files 2279 2288 +9
Lines 103738 103943 +205
============================================
+ Hits 67123 67304 +181
- Misses 36615 36639 +24
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 21 out of 21 changed files in this pull request and generated no comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we adding this now ?
Also don't see this in original PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed for Symfony's auto-wiring which is not used in Symfony 4.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 23 out of 23 changed files in this pull request and generated no comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks great and the going through the testing steps went smooth except the unrelated UI issue
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes looks good.
@fedys I'm not seeing any documentation PRs for this. It should at least be mentioned here, I think? Otherwise how do people know that it can be used? https://docs.mautic.org/en/7.0/configuration/settings.html#redis cc @mautic/education-team-leaders |
Description
This PR improves utilization of Redis backend when Mautic's cache configuration is set to Redis. Before this PR, Mautic was using a
CacheProviderTagAwareInterface
in situations when the tagable cache provider was not necessary and it was generating around 50% more queries to Redis. This PR separates the tag-aware cache provider from the non-tag-aware cache provider by introducing a newCacheProviderTagAwareInterface
.📋 Steps to test this PR:
config/local.php
and add the following lines to start using Redis as the cache backend:app/cache
directory to make sure the above changes inconfig/local.php
are applied.