You are here

function hook_authcache_account_exclude in Authenticated User Page Caching (Authcache) 7.2

Exclude a page from being cached based on the given account.

Return value

string A translated string specifying the reason of exclusion or null.

2 functions implement hook_authcache_account_exclude()

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

authcache_authcache_account_exclude in ./authcache.module
Implements hook_authcache_account_exclude().
authcache_test_authcache_account_exclude in tests/authcache_test.module
Implements hook_authcache_account_exclude().
2 invocations of hook_authcache_account_exclude()
authcache_account_allows_caching in ./authcache.module
Return true if the given account is cacheable.
authcache_init in ./authcache.module
Implements hook_init().

File

./authcache.api.php, line 25
Authcache API documentation.

Code

function hook_authcache_account_exclude($account) {

  // Bail out from requests by superuser (uid=1)
  if ($account->uid == 1 && !variable_get('authcache_su', 0)) {
    return t('Caching disabled for superuser');
  }
}