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
dev/cloud-native/issues#17: Moving the cache for CRM_Extension_Browser
out of the filesystem and use a SqlGroup
instead.
#12624
Conversation
Can one of the admins verify this patch? |
(Standard links)
|
add to whitelist |
@tiotsop01 this has triggered a bunch of style warnings - I think the links the bot pasted help if you aren't sure about the style issues |
} | ||
$this->browser = new CRM_Extension_Browser($this->getRepositoryUrl(), '', $cacheDir); | ||
$this->browser = new CRM_Extension_Browser($this->getRepositoryUrl(), '', $cache); |
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 doesn't match the revised signature of CRM_Extension_Browser::__construct()
-- ie
- It now expects a
CRM_Utils_Cache_Interface $cache
andCRM_Utils_HttpClient $client
as the first two args. - It no longer expects a
string $cacheDir
as the last two args.
This is a really appealing change- but my sense it that @tiotsop01 was a GSOC student & is not likely to work on progressing this now & it does need changes so I'm going to close & track via gitlab - it can be reopened if someone does want to pick it up |
Before
The current code in CRM_Extension_Browser is coded specifically for an adhoc, file-based caching logic
After
Change the backing/storage from a JSON file to the civicrm_cache table (at least, for the typical usage).
Comments
see comments in gitlab