r2458 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r2457‎ | r2458 | r2459 >
Date:21:12, 8 February 2004
Author:gabrielwicke
Status:old
Tags:
Comment:
added function setSquidMaxage to adjust the Cache timeout for special pages
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -246,8 +246,14 @@
247247 wfProfileOut( $fname );
248248 }
249249
 250+ # Set the maximum cache time on the Squid in seconds
 251+ function setSquidMaxage( $maxage ) {
 252+ global $wgSquidMaxage;
 253+ $wgSquidMaxage = $maxage;
 254+ }
 255+
250256 function sendCacheControl() {
251 - global $wgUseSquid, $wgUseESI, $wgSquidMaxage;
 257+ global $wgUseSquid, $wgUseESI, $wgSquidMaxage, $wgOut;
252258 # FIXME: This header may cause trouble with some versions of Internet Explorer
253259 header( "Vary: Accept-Encoding, Cookie" );
254260 if( $this->mLastModified != "" ) {

Status & tagging log