Skip to content
Snippets Groups Projects

Update requirements

Open Michael Strelan requested to merge issue/purge-3459162:3459162-requirements into 8.x-3.x
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -72,7 +72,7 @@ class MaxAgeCheck extends DiagnosticCheckBase implements DiagnosticCheckInterfac
$this->recommendation = $this->t("TTL settings under 24 hours are dangerous, as sudden traffic increases will quickly reach your webserver(s) and can make Drupal slow.");
return self::SEVERITY_WARNING;
}
elseif ($max_age < 2764800) {
elseif ($max_age < 2419200) {
$this->recommendation = $this->t("TTL settings under a month are not recommended, the longer you set it, the better your site will perform!");
return self::SEVERITY_WARNING;
}
@@ -120,10 +120,10 @@ class MaxAgeCheck extends DiagnosticCheckBase implements DiagnosticCheckInterfac
elseif ($max_age === 604800) {
return $this->t('1 week');
}
elseif ($max_age < 2764800) {
elseif ($max_age <= 2419200) {
return $this->t('@num weeks', ['@num' => round($max_age / 604800, 1)]);
}
elseif ($max_age === 2764800) {
elseif ($max_age > 2419200 && $max_age <= 2678400) {
return $this->t('1 month');
}
elseif ($max_age < 31536000) {
Loading