Commit 7f3bf13f authored by Rafal Tokarski's avatar Rafal Tokarski Committed by Dieter Holvoet
Browse files

Issue #3527918 by dieterholvoet, rtkr: The 5xx cache maximum age setting doesn't do anything

parent c633754f
Loading
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -43,10 +43,16 @@ function http_cache_control_update_8102(): void {
}

/**
 * Remove the '5xx cache maximum age' setting.
 * Remove the '5xx cache maximum age' setting (obsolete).
 */
function http_cache_control_update_8103(): void {
}

/**
 * Remove the '5xx cache maximum age' setting.
 */
function http_cache_control_update_8104(): void {
  $config = \Drupal::configFactory()->getEditable('http_cache_control.settings');
  $config->clear('5xx_max_age');
  $config->clear('cache.http.5xx_max_age');
  $config->save();
}