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