You are here

function authcache_debug_authcache_debug_info in Authenticated User Page Caching (Authcache) 7.2

Implements hook_authcache_debug_info().

File

modules/authcache_debug/authcache_debug.module, line 141
Debug widget for Authcache.

Code

function authcache_debug_authcache_debug_info() {
  global $user;
  $info = array(
    'cacheTime' => REQUEST_TIME,
    'cacheStatus' => _authcache_debug_status(),
    'cacheReqId' => empty($_COOKIE['Drupal_authcache_aucdbg']) ? '' : $_COOKIE['Drupal_authcache_aucdbg'],
    'pageRender' => timer_read('page'),
    'Debug Users' => variable_get('authcache_debug_users', array()),
    'Cache User' => $user->uid,
    'Cache Backends' => implode(', ', module_implements('authcache_backend_cache_save')),
    'Active Backend' => authcache_backend(),
    'Authcache Key' => authcache_key(),
  );
  if (user_is_logged_in()) {
    $info['Key props'] = authcache_key_properties();
  }
  return $info;
}