You are here

function authcache_enum_keys in Authenticated User Page Caching (Authcache) 7.2

Return a flat list of authcache keys and cache-keys used by anonymous users.

6 calls to authcache_enum_keys()
AuthcacheEnumKeysTestCase::testCustomAnonymousKeys in modules/authcache_enum/lib/Drupal/authcache_enum/Tests/AuthcacheEnumKeysTestCase.php
Test anonymous key customization.
AuthcacheEnumKeysTestCase::testCustomAuthenticatedKeys in modules/authcache_enum/lib/Drupal/authcache_enum/Tests/AuthcacheEnumKeysTestCase.php
Test authenticated key customization.
AuthcacheEnumKeysTestCase::testDeprecatedCustomAuthenticatedKeys in modules/authcache_enum/lib/Drupal/authcache_enum/Tests/AuthcacheEnumKeysTestCase.php
Test deprecated authenticated key customization.
AuthcacheEnumKeysTestCase::testKeyEnumKeys in modules/authcache_enum/lib/Drupal/authcache_enum/Tests/AuthcacheEnumKeysTestCase.php
Test enumeration of anonymous and authenticated keys.
authcache_builtin_expire_v1_expire_cache in modules/authcache_builtin_expire_v1/authcache_builtin_expire_v1.module
Implements hook_expire_cache().

... See full list

File

modules/authcache_enum/authcache_enum.module, line 127
Provides methods for computing and enumerating authcache keys

Code

function authcache_enum_keys() {

  // Keys for authenticated users.
  $authcache_keys = array_map('strval', array_keys(authcache_enum_user_keys()));

  // Keys for anonymous users.
  $anonymous_keys = authcache_enum_anonymous_keys();
  return array_merge($authcache_keys, $anonymous_keys);
}