summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-11-22 08:20:51 +0000
committerDries Buytaert <dries@buytaert.net>2009-11-22 08:20:51 +0000
commit110f89c5f0b97b85bc53c3b7edfebbdc812bb62d (patch)
treeeac2357a110c21bcf4e6f6287169128702a0891a
parent79a9a4f3bf2cd829662db4272eec4a6ce86fefea (diff)
downloadbrdo-110f89c5f0b97b85bc53c3b7edfebbdc812bb62d.tar.gz
brdo-110f89c5f0b97b85bc53c3b7edfebbdc812bb62d.tar.bz2
- Patch #626688 by justinrandell: add caching for system_list(). Eliminate a query.
-rw-r--r--includes/bootstrap.inc4
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);
}