function _prod_check_block_cache in Production check & Production monitor 6
Same name and namespace in other branches
- 7 prod_check.module \_prod_check_block_cache()
File
- ./
prod_check.module, line 1117
Code
function _prod_check_block_cache($caller = 'internal') {
$check = array();
$title = 'Block cache';
$path = 'admin/settings/performance';
if ($caller != 'internal') {
$path = PRODCHECK_BASEURL . $path;
}
$check['prod_check_block_cache'] = array(
'#title' => t($title),
'#state' => variable_get('block_cache', 0) != 0,
'#severity' => $caller == 'nagios' ? NAGIOS_STATUS_CRITICAL : PROD_CHECK_REQUIREMENT_ERROR,
'#value_ok' => t('Enabled'),
'#value_nok' => t('Disabled'),
'#description_ok' => prod_check_ok_title($title, $path),
'#description_nok' => t('Your !link settings are disabled. You should really enable this for production as it can cause huge performance increases, especially on high load websites!', prod_check_link_array($title, $path)),
'#nagios_key' => 'BCACHE',
'#nagios_type' => 'state',
);
return prod_check_execute_check($check, $caller);
}