drupal_page_is_cacheable($allow_caching = NULL)Determine the cacheability of the current page.
$allow_caching Set to FALSE if you want to prevent this page to get cached.
TRUE if the current page can be cached, FALSE otherwise.
includes/bootstrap.inc, line 853
<?php
function drupal_page_is_cacheable($allow_caching = NULL) {
$allow_caching_static = &drupal_static(__FUNCTION__, TRUE);
if (isset($allow_caching)) {
$allow_caching_static = $allow_caching;
}
return $allow_caching_static && ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'HEAD')
&& !drupal_is_cli();
}
?>