function _authcache_default_pagecaching in Authenticated User Page Caching (Authcache) 7.2
Return default pagecaching rule.
Related topics
15 calls to _authcache_default_pagecaching()
- AuthcacheBackendKeyManagementTestCase::setUp in tests/
authcache.backend.test - Sets up a Drupal site for running functional and integration tests.
- AuthcacheBuiltinTestCacheBackend::setUp in modules/
authcache_builtin/ tests/ authcache_builtin.cache-backend.test - Initialize test case.
- AuthcacheCommentTest::setUp in modules/
authcache_comment/ authcache_comment.test - Sets up a Drupal site for running functional and integration tests.
- AuthcacheCommerceTest::setUp in modules/
authcache_commerce/ authcache_commerce.test - Sets up a Drupal site for running functional and integration tests.
- AuthcacheFieldTest::setUp in modules/
authcache_field/ authcache_field.test - Sets up a Drupal site for running functional and integration tests.
File
- ./
authcache.module, line 852 - Authenticated User Page Caching (and anonymous users, too!)
Code
function _authcache_default_pagecaching() {
// By default restrict default cache roles to anonymous and authenticated
// users.
return array(
array(
'option' => 0,
'pages' => AUTHCACHE_NOCACHE_DEFAULT,
'noadmin' => 1,
'roles' => array(
'custom' => TRUE,
'roles' => drupal_map_assoc(array(
DRUPAL_ANONYMOUS_RID,
DRUPAL_AUTHENTICATED_RID,
)),
),
),
);
}