Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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. - Module categories: Performance
- 1 site reports using this module
- 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.