public function SiteAuditCheckCacheBins::calculateScore in Site Audit 7
Implements \SiteAudit\Check\Abstract\calculateScore().
Overrides SiteAuditCheckAbstract::calculateScore
File
- Check/
Cache/ Bins.php, line 85 - Contains \SiteAudit\Check\Cache\Bins.
Class
- SiteAuditCheckCacheBins
- Class SiteAuditCheckCacheBins.
Code
public function calculateScore() {
global $conf;
$this->registry['cache_bins'] = array();
$variables = preg_grep('/^cache_class_/', array_keys($conf));
if (!empty($variables)) {
foreach ($variables as $variable_name) {
$this->registry['cache_bins'][$variable_name] = $conf[$variable_name];
}
}
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO;
}