function authcache_is_default_key in Authenticated User Page Caching (Authcache) 7.2
Returns true if this request is using the default cache-key.
Related topics
2 calls to authcache_is_default_key()
- AuthcacheAnonymousKeysTestCase::testIsDefaultKey in ./
authcache.test - Cover authcache_is_default_key().
- authcache_serve_page_from_cache in ./
authcache.cache.inc - Sets HTTP headers in preparation for a cached page response.
File
- ./
authcache.cache.inc, line 272 - Defines authcache aware copy of drupal_serve_page_from_cache().
Code
function authcache_is_default_key($key) {
global $base_root;
// Check whether a key-generator for anonymous users is in place.
$generator = variable_get('authcache_key_generator');
if (is_callable($generator)) {
return FALSE;
}
return $key === $base_root;
}