function drupal_page_is_cacheable

cis7 bootstrap.inc drupal_page_is_cacheable($allow_caching = NULL)
cle7 bootstrap.inc drupal_page_is_cacheable($allow_caching = NULL)
elmsmedia7 bootstrap.inc drupal_page_is_cacheable($allow_caching = NULL)
icor7 bootstrap.inc drupal_page_is_cacheable($allow_caching = NULL)
meedjum_blog7 bootstrap.inc drupal_page_is_cacheable($allow_caching = NULL)
mooc7 bootstrap.inc drupal_page_is_cacheable($allow_caching = NULL)

Determines the cacheability of the current page.

Parameters

$allow_caching: Set to FALSE if you want to prevent this page to get cached.

Return value

TRUE if the current page can be cached, FALSE otherwise.

11 calls to drupal_page_is_cacheable()
admin_menu_js_cache in sites/all/modules/ulmus/admin_menu/admin_menu.module
Menu callback; Output administration menu for HTTP caching via AJAX request.
advagg_css_compress_advagg_modify_css_pre_render_alter in sites/all/modules/ulmus/advagg/advagg_css_compress/advagg_css_compress.module
Implements hook_advagg_modify_css_pre_render_alter().
advagg_js_compress_advagg_modify_js_pre_render_alter in sites/all/modules/ulmus/advagg/advagg_js_compress/advagg_js_compress.module
Implements hook_advagg_modify_js_pre_render_alter().
boost_exit in sites/all/modules/ulmus/boost/boost.module
Implements hook_exit().
drupal_page_get_cache in includes/bootstrap.inc
Retrieves the current page from the cache.

... See full list

File

includes/bootstrap.inc, line 1048
Functions that need to be loaded on every Drupal request.

Code

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();
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.