function hook_authcache_excluded in Authenticated User Page Caching (Authcache) 7.2
Perform an action when a page has been excluded from caching.
This hook is called very early in authcache_init().
Parameters
string $reason: A translated string giving the reason why the page was excluded from being cached.
See also
hook_authcache_request_exclude()
hook_authcache_account_exclude()
3 functions implement hook_authcache_excluded()
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_excluded in modules/
authcache_debug/ authcache_debug.module - Implements hook_authcache_excluded().
- authcache_form_test_authcache_excluded in modules/
authcache_form/ tests/ authcache_form_test.module - Implements hook_authcache_excluded().
- authcache_test_authcache_excluded in tests/
authcache_test.module - Implements hook_authcache_excluded().
1 invocation of hook_authcache_excluded()
- _authcache_exclude in ./
authcache.module - Private function called from authcache_init.
File
- ./
authcache.api.php, line 44 - Authcache API documentation.
Code
function hook_authcache_excluded($reason) {
if (authcache_debug_access()) {
drupal_add_js(array(
'authcacheDebug' => array(
'nocacheReason' => $reason,
),
), 'setting');
}
}