public function SiteAuditCheckCachePageCompression::getAction in Site Audit 7
Implements \SiteAudit\Check\Abstract\getAction().
Overrides SiteAuditCheckAbstract::getAction
File
- Check/
Cache/ PageCompression.php, line 68 - Contains \SiteAudit\Check\Cache\PageCompression.
Class
- SiteAuditCheckCachePageCompression
- Class SiteAuditCheckCachePageCompression.
Code
public function getAction() {
if (!in_array($this->score, array(
SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS,
))) {
if (drush_get_option('vendor') == 'pantheon') {
return dt('Pantheon compresses your pages for you. Don\'t make Drupal do the work! Go to /admin/config/development/performance and uncheck "Compress cached pages".');
}
else {
return dt('Go to /admin/config/development/performance and check "Compress cached pages".');
}
}
}