page_get_cache
includes/bootstrap.inc, строка 498
- Версии
- 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).
Код
<?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(), 'cache_page');
if (empty($cache)) {
ob_start();
}
}
return $cache;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии