You are here

function hook_authcache_debug_info in Authenticated User Page Caching (Authcache) 7.2

Collect information displayed in the authcache debug widget.

Return an array of key-value pairs which will be displayed in the debug widget. This information is stored for each cached page request into the cache bin cache_authcache_debug.

Return value

array An array of key-value pairs which should be shown in the debug widget.

4 functions implement hook_authcache_debug_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

authcache_builtin_authcache_debug_info in modules/authcache_builtin/authcache_builtin.module
Implements hook_authcache_debug_info().
authcache_debug_authcache_debug_info in modules/authcache_debug/authcache_debug.module
Implements hook_authcache_debug_info().
authcache_p13n_authcache_debug_info in modules/authcache_p13n/authcache_p13n.module
Implements hook_authcache_debug_info().
authcache_varnish_authcache_debug_info in modules/authcache_varnish/authcache_varnish.module
Implements hoook_authcache_debug_info().
1 invocation of hook_authcache_debug_info()
_authcache_debug_shutdown in modules/authcache_debug/authcache_debug.module
Shutdown function for saving debug info.

File

modules/authcache_debug/authcache_debug.api.php, line 29
API documentation for hooks exposed by Authcache Debug.

Code

function hook_authcache_debug_info() {
  global $user;
  return array(
    'Cache User E-Mail' => $user->uid ? $user->mail : 'anonymous',
  );
}