From: Gabriel Wicke Date: Sun, 8 Feb 2004 21:14:53 +0000 (+0000) Subject: maximum ten seconds server-side caching X-Git-Tag: 1.3.0beta1~1002 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=d2b982f3587430ba198c5f9ee655c901e519f5a6;p=lhc%2Fweb%2Fwiklou.git maximum ten seconds server-side caching --- diff --git a/includes/SpecialRecentchanges.php b/includes/SpecialRecentchanges.php index e8b763dcf6..2a19f71d99 100644 --- a/includes/SpecialRecentchanges.php +++ b/includes/SpecialRecentchanges.php @@ -18,6 +18,8 @@ function wfSpecialRecentchanges( $par ) $sql = "SELECT MAX(rc_timestamp) AS lastmod FROM recentchanges"; $res = wfQuery( $sql, DB_READ, $fname ); $s = wfFetchObject( $res ); + # 10 seconds server-side caching max + $wgOut->setSquidMaxage( 10 ); if( $wgOut->checkLastModified( $s->lastmod ) ){ # Client cache fresh and headers sent, nothing more to do. return;