function shield_boost_is_cacheable in Shield 7
Implements hook_boost_is_cacheable().
File
- ./
shield.module, line 210 - Functions for shield module
Code
function shield_boost_is_cacheable($parts, $request_type = 'normal') {
// If this page is protected by Shield, disable caching pages with Boost,
// which would otherwise be accessible since Boost delivers pages before
// Shield can influence authentication.
if (shield_get_status()) {
$parts['is_cacheable'] = FALSE;
$parts['is_cacheable_reason'] = t('Shield prevents all pages from being cached by Boost.');
}
return $parts;
}