X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FOutputPage.php;h=560588f43db1285d4150ca3360aec3e6e6e546f0;hb=e3e46ba7633b20b0bfbab065dc6727a228080f5c;hp=bb02c0118cc2894a98792eabbd699fe727288e96;hpb=71836d664325ff4421a42a320d42fa220b49d82d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputPage.php b/includes/OutputPage.php index bb02c0118c..560588f43d 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1,7 +1,24 @@ var $mMetatags = array(); - /// most of the time the first 10 links to an article + /// most of the time the first 10 links to an article var $mKeywords = array(); var $mLinktags = array(); @@ -1661,18 +1678,6 @@ class OutputPage extends ContextSource { return $cookies; } - /** - * Return whether this page is not cacheable because "useskin" or "uselang" - * URL parameters were passed. - * - * @return Boolean - */ - function uncacheableBecauseRequestVars() { - $request = $this->getRequest(); - return $request->getText( 'useskin', false ) === false - && $request->getText( 'uselang', false ) === false; - } - /** * Check if the request has a cache-varying cookie header * If it does, it's very important that we don't allow public caching @@ -1840,7 +1845,7 @@ class OutputPage extends ContextSource { $response->header( $this->getXVO() ); } - if( !$this->uncacheableBecauseRequestVars() && $this->mEnableClientCache ) { + if( $this->mEnableClientCache ) { if( $wgUseSquid && session_id() == '' && !$this->isPrintable() && $this->mSquidMaxage != 0 && !$this->haveCacheVaryCookies() @@ -2505,7 +2510,7 @@ $templates * @return string html