r2460 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r2459‎ | r2460 | r2461 >
Date:21:14, 8 February 2004
Author:gabrielwicke
Status:old
Tags:
Comment:
maximum ten seconds server-side caching
Modified paths:
  • /trunk/phase3/includes/SpecialRecentchanges.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialRecentchanges.php
@@ -18,6 +18,8 @@
1919 $sql = "SELECT MAX(rc_timestamp) AS lastmod FROM recentchanges";
2020 $res = wfQuery( $sql, DB_READ, $fname );
2121 $s = wfFetchObject( $res );
 22+ # 10 seconds server-side caching max
 23+ $wgOut->setSquidMaxage( 10 );
2224 if( $wgOut->checkLastModified( $s->lastmod ) ){
2325 # Client cache fresh and headers sent, nothing more to do.
2426 return;

Status & tagging log