page_get_cache

  1. drupal
    1. 4.7
    2. 5
    3. 6 bootstrap.inc
Versions
4.7 – 5 page_get_cache()
6 page_get_cache($status_only = FALSE)

Retrieve the current page from the cache.

Note, we do not serve cached pages when status messages are waiting (from a redirected form submission which was completed). Because the output handler is not activated, the resulting page will not get cached either.

▾ 1 function calls page_get_cache()

drupal_page_header in includes/bootstrap.inc
Set HTTP headers in preparation for a page response.

Code

includes/bootstrap.inc, line 442

<?php
function page_get_cache() {
  global $user, $base_root;

  $cache = NULL;

  if (!$user->uid && $_SERVER['REQUEST_METHOD'] == 'GET' && count(drupal_set_message()) == 0) {
    $cache = cache_get($base_root . request_uri());

    if (empty($cache)) {
      ob_start();
    }
  }

  return $cache;
}
?>