- Patch #626688 by justinrandell: add caching for system_list(). Eliminate a query.

merge-requests/26/head
Dries Buytaert 2009-11-22 08:20:51 +00:00
parent 79a9a4f3bf
commit 110f89c5f0
1 changed files with 3 additions and 1 deletions

View File

@ -832,7 +832,9 @@ function drupal_page_is_cacheable($allow_caching = NULL) {
* The name of the bootstrap hook we wish to invoke. * The name of the bootstrap hook we wish to invoke.
*/ */
function bootstrap_invoke_all($hook) { 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); drupal_load('module', $module);
module_invoke($module, $hook); module_invoke($module, $hook);
} }