From: Gabriel Wicke Date: Sun, 8 Feb 2004 21:12:07 +0000 (+0000) Subject: added function setSquidMaxage to adjust the Cache timeout for special pages X-Git-Tag: 1.3.0beta1~1004 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=d7a93a085ac0c74da4a87b26b62fd0ed6bc2cd3a;p=lhc%2Fweb%2Fwiklou.git added function setSquidMaxage to adjust the Cache timeout for special pages --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index ac82ad2788..92b416e3fe 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -246,8 +246,14 @@ class OutputPage { wfProfileOut( $fname ); } + # Set the maximum cache time on the Squid in seconds + function setSquidMaxage( $maxage ) { + global $wgSquidMaxage; + $wgSquidMaxage = $maxage; + } + function sendCacheControl() { - global $wgUseSquid, $wgUseESI, $wgSquidMaxage; + global $wgUseSquid, $wgUseESI, $wgSquidMaxage, $wgOut; # FIXME: This header may cause trouble with some versions of Internet Explorer header( "Vary: Accept-Encoding, Cookie" ); if( $this->mLastModified != "" ) {