? docs ? test Index: includes/bootstrap.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/bootstrap.inc,v retrieving revision 1.206.2.6 diff -u -p -r1.206.2.6 bootstrap.inc --- includes/bootstrap.inc 22 Oct 2008 19:26:01 -0000 1.206.2.6 +++ includes/bootstrap.inc 10 Nov 2008 21:12:41 -0000 @@ -998,13 +998,13 @@ function _drupal_bootstrap($phase) { case DRUPAL_BOOTSTRAP_LATE_PAGE_CACHE: // Initialize configuration variables, using values from settings.php if available. $conf = variable_init(isset($conf) ? $conf : array()); - // Load module handling. - require_once './includes/module.inc'; $cache_mode = variable_get('cache', CACHE_DISABLED); // Get the page from the cache. $cache = $cache_mode == CACHE_DISABLED ? '' : page_get_cache(); // If the skipping of the bootstrap hooks is not enforced, call hook_boot. - if ($cache_mode != CACHE_AGGRESSIVE) { + if (!$cache || $cache_mode != CACHE_AGGRESSIVE) { + // Load module handling. + require_once './includes/module.inc'; bootstrap_invoke_all('boot'); } // If there is a cached page, display it.