summaryrefslogtreecommitdiff
path: root/includes/module.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/module.inc')
-rw-r--r--includes/module.inc5
1 files changed, 1 insertions, 4 deletions
diff --git a/includes/module.inc b/includes/module.inc
index da6dae99c..fe2a9805e 100644
--- a/includes/module.inc
+++ b/includes/module.inc
@@ -834,10 +834,7 @@ function module_hook_info() {
*/
function module_implements_write_cache() {
$implementations = &drupal_static('module_implements');
- // Check whether we need to write the cache. We do not want to cache hooks
- // which are only invoked on HTTP POST requests since these do not need to be
- // optimized as tightly, and not doing so keeps the cache entry smaller.
- if (isset($implementations['#write_cache']) && ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'HEAD')) {
+ if (isset($implementations['#write_cache'])) {
unset($implementations['#write_cache']);
cache_set('module_implements', $implementations, 'cache_bootstrap');
}