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
Caching id actions in general cache for faster segmented archive SQL queries #8861
Conversation
…enable_segments_subquery_cache setting (disabled by default)
TODOs
|
LoggingAdded some logging for cache hits / misses, simply looks like this:
or when there are more than
|
Caching id actions in general cache for faster segmented archive SQL queries
Merged, will be included in 2.15.0-b14 |
follow up issue: Enable segment subquery cache (queries with Contains/Does not contain on log_action) #8867 |
$this->isEnabled = (bool)Config::getInstance()->General['enable_segments_subquery_cache']; | ||
$this->limitActionIds = Config::getInstance()->General['segments_subquery_cache_limit']; | ||
$this->lifetime = Config::getInstance()->General['segments_subquery_cache_ttl']; | ||
$this->logger = StaticContainer::get('Psr\Log\LoggerInterface'); |
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.
If a class has dependencies, it should be stored in DI. This class should be stored in DI.
How to enable
To enable, set:
enable_segments_subquery_cache = 1
under[General]
in config/config.ini.phpTweak cache