public function SiteAuditCheckCacheLifetime::calculateScore in Site Audit 7
Implements \SiteAudit\Check\Abstract\calculateScore().
Overrides SiteAuditCheckAbstract::calculateScore
File
- Check/
Cache/ Lifetime.php, line 65 - Contains \SiteAudit\Check\Cache\Lifetime.
Class
- SiteAuditCheckCacheLifetime
- Class SiteAuditCheckCacheLifetime.
Code
public function calculateScore() {
global $conf;
if (!isset($conf['cache_lifetime']) || !$conf['cache_lifetime']) {
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS;
}
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_WARN;
}