From d2b982f3587430ba198c5f9ee655c901e519f5a6 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Sun, 8 Feb 2004 21:14:53 +0000 Subject: [PATCH] maximum ten seconds server-side caching --- includes/SpecialRecentchanges.php | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.20.1