function authcache_ensure_element_cacheable in Authenticated User Page Caching (Authcache) 7.2
Post-render callback for render elements.
Ensure that an element was marked as cacheable by one of the supporting modules.
Related topics
1 string reference to 'authcache_ensure_element_cacheable'
- authcache_element_suspect in ./
authcache.module - Specify that the given element cannot be cached without further processing.
File
- ./
authcache.module, line 475 - Authenticated User Page Caching (and anonymous users, too!)
Code
function authcache_ensure_element_cacheable($markup, $element) {
$strict = !empty($element['#authcache_cancel_strict']);
if (($strict || !empty($markup)) && !authcache_element_is_cacheable($element)) {
$message = !empty($element['#authcache_cancel_message']) ? $element['#authcache_cancel_message'] : t('Non cacheable render element on page');
authcache_cancel($message);
}
return $markup;
}