You are here

function authcache_debug_authcache_precluded in Authenticated User Page Caching (Authcache) 7.2

Implements hook_authcache_precluded().

File

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

Code

function authcache_debug_authcache_precluded($reason) {
  global $user;
  if (!empty($user->uid) || !empty($_SESSION)) {
    $_SESSION['aucdbg_precluded'][] = array(
      'label' => t('Precluded'),
      'message' => $reason,
    );
  }
  authcache_debug_log(t('Precluded'), $reason);
}