public function SiteAuditCheckCacheLifetime::getAction in Site Audit 7
Implements \SiteAudit\Check\Abstract\getAction().
Overrides SiteAuditCheckAbstract::getAction
File
- Check/
Cache/ Lifetime.php, line 56 - Contains \SiteAudit\Check\Cache\Lifetime.
Class
- SiteAuditCheckCacheLifetime
- Class SiteAuditCheckCacheLifetime.
Code
public function getAction() {
if (!in_array($this->score, array(
SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS,
))) {
return dt('Go to /admin/config/development/performance and set "Minimum cache lifetime" to none.');
}
}