| Versionen | |
|---|---|
| drupal6 | page_cache_fastpath() |
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.
TRUE if a page was output successfully.
developer-docs/
<?php
function page_cache_fastpath() {
$page = mycache_fetch($base_root . request_uri(), 'cache_page');
if (!empty($page)) {
drupal_page_header();
print $page;
return TRUE;
}
}
?>
Kommentare
Kommentar hinzufügen