diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-11-22 08:20:51 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-11-22 08:20:51 +0000 |
commit | 110f89c5f0b97b85bc53c3b7edfebbdc812bb62d (patch) | |
tree | eac2357a110c21bcf4e6f6287169128702a0891a | |
parent | 79a9a4f3bf2cd829662db4272eec4a6ce86fefea (diff) | |
download | brdo-110f89c5f0b97b85bc53c3b7edfebbdc812bb62d.tar.gz brdo-110f89c5f0b97b85bc53c3b7edfebbdc812bb62d.tar.bz2 |
- Patch #626688 by justinrandell: add caching for system_list(). Eliminate a query.
-rw-r--r-- | includes/bootstrap.inc | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |