function hook_authcache_precluded in Authenticated User Page Caching (Authcache) 7.2
Perform an action if next page request will not be served from cache.
This hook is called late in authcache_exit() just before cookies are set and the page is cached / sent to the client.
Parameters
string $reason: A translated string giving the reason why the next page will not be served from the cache.
See also
2 functions implement hook_authcache_precluded()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- authcache_debug_authcache_precluded in modules/
authcache_debug/ authcache_debug.module - Implements hook_authcache_precluded().
- authcache_test_authcache_precluded in tests/
authcache_test.module - Implements hook_authcache_precluded().
1 invocation of hook_authcache_precluded()
- _authcache_preclude in ./
authcache.module - Prevent next page request from beeing served from cache.
File
- ./
authcache.api.php, line 109 - Authcache API documentation.
Code
function hook_authcache_precluded($reason) {
if (authcache_debug_access()) {
setcookie('preclude_reason', $reason, 0, ini_get('session.cookie_path'), ini_get('session.cookie_domain'), ini_get('session.cookie_secure') == '1');
}
}