return;
}
// always use cached results - they will be refreshed by the session timer
- $status = Civi::settings()->get('systemStatusCheckResult');
+ $status = Civi::cache('checks')->get('systemStatusCheckResult');
$template->assign('footer_status_severity', $status);
$template->assign('footer_status_message', CRM_Utils_Check::toStatusLabel($status));
}
break;
}
- Civi::settings()->set('systemStatusCheckResult', $maxSeverity);
+ Civi::cache('checks')->set('systemStatusCheckResult', $maxSeverity);
return ($max) ? $maxSeverity : $messages;
}
$basicCaches = array(
'js_strings' => 'js_strings',
'community_messages' => 'community_messages',
+ 'checks' => 'checks',
);
foreach ($basicCaches as $cacheSvc => $cacheGrp) {
$container->setDefinition("cache.{$cacheSvc}", new Definition(
'description' => '',
'help_text' => '',
),
- 'systemStatusCheckResult' => array(
- 'group_name' => 'CiviCRM Preferences',
- 'group' => 'core',
- 'name' => 'systemStatusCheckResult',
- 'type' => 'Integer',
- 'quick_form_type' => 'Element',
- 'html_type' => 'text',
- 'default' => 0,
- 'add' => '4.7',
- 'title' => 'systemStatusCheckResult',
- 'is_domain' => 1,
- 'is_contact' => 0,
- 'description' => '',
- 'help_text' => '',
- ),
'recentItemsMaxCount' => array(
'group_name' => 'CiviCRM Preferences',
'group' => 'core',
'description' => NULL,
'help_text' => NULL,
),
- 'systemStatusCheckResult' => array(
- 'group_name' => 'CiviCRM Preferences',
- 'group' => 'core',
- 'name' => 'systemStatusCheckResult',
- 'type' => 'Integer',
- 'quick_form_type' => 'Element',
- 'html_type' => 'text',
- 'default' => 0,
- 'add' => '4.7',
- 'title' => 'systemStatusCheckResult',
- 'is_domain' => 1,
- 'is_contact' => 0,
- 'description' => NULL,
- 'help_text' => NULL,
- ),
'recentItemsMaxCount' => array(
'group_name' => 'CiviCRM Preferences',
'group' => 'core',