function authcache_element_set_cacheable in Authenticated User Page Caching (Authcache) 7.2
Mark a render-element as cacheable.
Related topics
10 calls to authcache_element_set_cacheable()
- AuthcacheElementCacheabilityAPITestCase::testElementCacheabilityAPI in ./
authcache.test - Test cacheability API for render elements.
- authcache_comment_form_comment_form_alter in modules/
authcache_comment/ authcache_comment.module - Implements hook_form_FORM_ID_alter().
- authcache_commerce_form_commerce_cart_add_to_cart_form_alter in modules/
authcache_commerce/ authcache_commerce.module - Implements hook_form_FORM_ID_alter().
- authcache_form_value_set_cacheable in ./
authcache.module - Recursively find elements of type value and set them cacheable.
- authcache_menu_preprocess_page in modules/
authcache_menu/ authcache_menu.module - Implements hook_preprocess_page().
File
- ./
authcache.module, line 458 - Authenticated User Page Caching (and anonymous users, too!)
Code
function authcache_element_set_cacheable(&$element, $cacheable = TRUE) {
$element['#authcache_is_cacheable'] = $cacheable;
}