You are here

public function SiteAuditCheckCacheBackends::getAction in Site Audit 7

Implements \SiteAudit\Check\Abstract\getAction().

Overrides SiteAuditCheckAbstract::getAction

File

Check/Cache/Backends.php, line 57
Contains \SiteAudit\Check\Cache\Backends.

Class

SiteAuditCheckCacheBackends
Class SiteAuditCheckCacheBackends.

Code

public function getAction() {
  if ($this->score == SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO) {
    if (drush_get_option('vendor') == 'pantheon') {
      return dt('Consider using a caching backend such as redis.');
    }
    elseif (drush_get_option('vendor') == 'acquia') {
      return dt('Consider using a caching backend such as memcache.');
    }
    return dt('Consider using a caching backend such as redis or memcache.');
  }
  if ($this->score == SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_FAIL) {
    return dt('$conf["cache_backends"] should be an array.');
  }
}