From: C. Scott Ananian Date: Fri, 19 Oct 2018 15:36:44 +0000 (-0400) Subject: Deprecate $wgUseESI X-Git-Tag: 1.34.0-rc.0~3722^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=d63684a064b093a261baf9d4f67777e07b23ad1a;p=lhc%2Fweb%2Fwiklou.git Deprecate $wgUseESI This was an experimental Squid 3 feature which is now defunct. Change-Id: I799d87309b0dc77100900b75040fa9b85a35fc9a --- diff --git a/RELEASE-NOTES-1.33 b/RELEASE-NOTES-1.33 index 00a693829a..d487cf6d21 100644 --- a/RELEASE-NOTES-1.33 +++ b/RELEASE-NOTES-1.33 @@ -56,6 +56,8 @@ because of Phabricator reports. * … === Deprecations in 1.33 === +* The configuration option $wgUseESI has been deprecated, and is expected + to be removed in a future release. * … === Other changes in 1.33 === diff --git a/includes/AjaxResponse.php b/includes/AjaxResponse.php index 0c115053ba..dfcf4677af 100644 --- a/includes/AjaxResponse.php +++ b/includes/AjaxResponse.php @@ -186,6 +186,7 @@ class AjaxResponse { # Surrogate-Control controls our CDN, Cache-Control downstream caches if ( $this->mConfig->get( 'UseESI' ) ) { + wfDeprecated( '$wgUseESI = true', '1.33' ); header( 'Surrogate-Control: max-age=' . $this->mCacheDuration . ', content="ESI/1.0"' ); header( 'Cache-Control: s-maxage=0, must-revalidate, max-age=0' ); } else { diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 15d2627214..5e28036ae0 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -2736,6 +2736,7 @@ $wgUseSquid = false; /** * If you run Squid3 with ESI support, enable this (default:false): + * @deprecated in 1.33. This was a now-defunct experimental feature. */ $wgUseESI = false; diff --git a/includes/OutputPage.php b/includes/OutputPage.php index a5f5fab08a..0cff57818a 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2460,6 +2460,7 @@ class OutputPage extends ContextSource { !$this->haveCacheVaryCookies() ) { if ( $config->get( 'UseESI' ) ) { + wfDeprecated( '$wgUseESI = true', '1.33' ); # We'll purge the proxy cache explicitly, but require end user agents # to revalidate against the proxy on each visit. # Surrogate-Control controls our CDN, Cache-Control downstream caches