Outputs a cached page.

By implementing page_cache_fastpath(), a special cache handler can skip most of the bootstrap process, including the database connection. This function is invoked during DRUPAL_BOOTSTRAP_EARLY_PAGE_CACHE.

Return value

TRUE if a page was output successfully.

See also

_drupal_bootstrap()

Related topics

File

developer/hooks/core.php, line 907
These are the hooks that are invoked by the Drupal core.

Code

function page_cache_fastpath() {
  $page = mycache_fetch($base_root . request_uri(), 'cache_page');
  if (!empty($page)) {
    drupal_page_header();
    print $page;
    return TRUE;
  }
}