summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-05-16 09:39:31 +0000
committerDries Buytaert <dries@buytaert.net>2010-05-16 09:39:31 +0000
commit8ab61807e4b58cc9fd29b59f1cb87aaba89b5006 (patch)
treee4adf679d957997b653d8d6469bfff9a8e2a14a7 /includes
parent416f87f170cd6d2fe23db676939283cf174ff68c (diff)
downloadbrdo-8ab61807e4b58cc9fd29b59f1cb87aaba89b5006.tar.gz
brdo-8ab61807e4b58cc9fd29b59f1cb87aaba89b5006.tar.bz2
- Patch #800014 by c960657: tiny bootstrap clean-up.
Diffstat (limited to 'includes')
-rw-r--r--includes/bootstrap.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index d18564462..846cbdc35 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -1989,13 +1989,13 @@ function _drupal_bootstrap_page_cache() {
$cache = drupal_page_get_cache();
// If there is a cached page, display it.
if (is_object($cache)) {
+ header('X-Drupal-Cache: HIT');
date_default_timezone_set(drupal_get_user_timezone());
// If the skipping of the bootstrap hooks is not enforced, call
// hook_boot.
if (variable_get('page_cache_invoke_hooks', TRUE)) {
bootstrap_invoke_all('boot');
}
- header('X-Drupal-Cache: HIT');
drupal_serve_page_from_cache($cache);
// If the skipping of the bootstrap hooks is not enforced, call
// hook_exit.
@@ -2005,6 +2005,9 @@ function _drupal_bootstrap_page_cache() {
// We are done.
exit;
}
+ else {
+ header('X-Drupal-Cache: MISS');
+ }
}
}
@@ -2062,9 +2065,6 @@ function _drupal_bootstrap_variables() {
*/
function _drupal_bootstrap_page_header() {
bootstrap_invoke_all('boot');
- if (!drupal_page_get_cache(TRUE) && drupal_page_is_cacheable()) {
- header('X-Drupal-Cache: MISS');
- }
// Prepare for non-cached page workflow.
require_once DRUPAL_ROOT . '/' . variable_get('lock_inc', 'includes/lock.inc');