diff --git a/includes/module.inc b/includes/module.inc index d932f07..fa2ec70 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -806,7 +806,7 @@ function module_implements_write_cache() { // 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'); }