Provides a wrapper around drupal_http_request() that will, by default, cache outgoing GET requests. Also defines an alter hook so that other modules can adjust if a request is cached or not.
Requirements
No additional requirements.
Usage
Just enable the module and it will start caching outgoing GET requests. More complex rules require implementing an alter hook.
hook usage
/**
* Implements hook_http_request_is_cacheable_alter().
*/
function MYMODULE_http_request_is_cacheable_alter(&$is_cacheable, $context) {
// Try and limit to only Solr requests to minimize possible issues.
$is_cacheable &= strpos($context['url'], '/solr/') !== FALSE;
}
Project information
No further development
No longer developed by its maintainers.- Project categories: Performance
- Created by steven.wichers on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.


