function drupal_page_is_cacheable

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

Determines the cacheability of the current page.


$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/
Retrieves the current page from the cache.

... See full list


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


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 message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.