From 110f89c5f0b97b85bc53c3b7edfebbdc812bb62d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 22 Nov 2009 08:20:51 +0000 Subject: - Patch #626688 by justinrandell: add caching for system_list(). Eliminate a query. --- includes/bootstrap.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 8c043378e..48b287546 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -832,7 +832,9 @@ function drupal_page_is_cacheable($allow_caching = NULL) { * The name of the bootstrap hook we wish to invoke. */ function bootstrap_invoke_all($hook) { - foreach (module_list(TRUE, TRUE) as $module) { + // _drupal_bootstrap_page_cache() already loaded the bootstrap modules, so we + // don't need to tell module_list() to reset its bootstrap list. + foreach (module_list(FALSE, TRUE) as $module) { drupal_load('module', $module); module_invoke($module, $hook); } -- cgit v1.2.3