function _authcache_builtin_cacheinc_cache_key_get in Authenticated User Page Caching (Authcache) 7.2
Retrieve the authcache key for a session from the key-cache.
1 call to _authcache_builtin_cacheinc_cache_key_get()
- authcache_builtin_cacheinc_retrieve_cache_page in modules/
authcache_builtin/ authcache_builtin.cache.inc - Send cached page to browser, if found.
File
- modules/
authcache_builtin/ authcache_builtin.cache.inc, line 41
Code
function _authcache_builtin_cacheinc_cache_key_get($session_id) {
global $base_root;
$cache = cache_get($base_root . ':' . $session_id, 'cache_authcache_key');
if ($cache === FALSE || $cache->expire > 0 && $cache->expire < REQUEST_TIME) {
// Need a full bootstrap when key was not found or entry expired.
return FALSE;
}
else {
return $cache->data;
}
}