public function SiteAuditCheckCacheLock::getAction in Site Audit 7
Implements \SiteAudit\Check\Abstract\getAction().
Overrides SiteAuditCheckAbstract::getAction
File
- Check/
Cache/ Lock.php, line 55 - Contains \SiteAudit\Check\Cache\Lock.
Class
- SiteAuditCheckCacheLock
- Class SiteAuditCheckCacheLock.
Code
public function getAction() {
if ($this->score == SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO) {
if (drush_get_option('vendor') == 'pantheon') {
return dt('Consider using a dedicated API to a caching backend such as redis.');
}
elseif (drush_get_option('vendor') == 'acquia') {
return dt('Consider using a dedicated API to a caching backend such as memcache.');
}
return dt('Consider using a dedicated API to a caching backend, such as redis or memcache.');
}
}