You are here

public function SiteAuditCheckCachePageExpire::getResultWarn in Site Audit 8.2

Same name and namespace in other branches
  1. 7 Check/Cache/PageExpire.php \SiteAuditCheckCachePageExpire::getResultWarn()

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

Overrides SiteAuditCheckAbstract::getResultWarn

File

Check/Cache/PageExpire.php, line 53
Contains \SiteAudit\Check\Cache\PageExpire.

Class

SiteAuditCheckCachePageExpire
Class SiteAuditCheckCachePageExpire.

Code

public function getResultWarn() {
  global $conf;
  return dt('Expiration of cached pages only set to @minutes min.', array(
    '@minutes' => round(\Drupal::config('system.performance')
      ->get('cache.page.max_age') / 60),
  ));
}