function drupal_page_get_cache

cis7 bootstrap.inc drupal_page_get_cache($check_only = FALSE)
cle7 bootstrap.inc drupal_page_get_cache($check_only = FALSE)
elmsmedia7 bootstrap.inc drupal_page_get_cache($check_only = FALSE)
icor7 bootstrap.inc drupal_page_get_cache($check_only = FALSE)
meedjum_blog7 bootstrap.inc drupal_page_get_cache($check_only = FALSE)
mooc7 bootstrap.inc drupal_page_get_cache($check_only = FALSE)

Retrieves the current page from the cache.

Note: we do not serve cached pages to authenticated users, or to anonymous users when $_SESSION is non-empty. $_SESSION may contain status messages from a form submission, the contents of a shopping cart, or other user- specific content that should not be cached and displayed to other users.

Parameters

$check_only: (optional) Set to TRUE to only return whether a previous call found a cache entry.

Return value

The cache object, if the page was found in the cache, NULL otherwise.

2 calls to drupal_page_get_cache()
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.
_drupal_bootstrap_page_cache in includes/bootstrap.inc
Attempts to serve a page from the cache.

File

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

Code

function drupal_page_get_cache($check_only = FALSE) {
  global $base_root;
  static $cache_hit = FALSE;

  if ($check_only) {
    return $cache_hit;
  }

  if (drupal_page_is_cacheable()) {
    $cache = cache_get($base_root . request_uri(), 'cache_page');
    if ($cache !== FALSE) {
      $cache_hit = TRUE;
    }
    return $cache;
  }
}
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.