Skip to content
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

Closed
wants to merge 17 commits into from

Conversation

tiotsop01
Copy link
Contributor

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

@civicrm-builder
Copy link

Can one of the admins verify this patch?

@civibot
Copy link

civibot bot commented Aug 4, 2018

(Standard links)

@eileenmcnaughton
Copy link
Contributor

add to whitelist

@eileenmcnaughton
Copy link
Contributor

@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);
Copy link
Member

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 and CRM_Utils_HttpClient $client as the first two args.
  • It no longer expects a string $cacheDir as the last two args.

@eileenmcnaughton
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants