r98211 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98210‎ | r98211 | r98212 >
Date:06:45, 27 September 2011
Author:aaron
Status:ok
Tags:
Comment:
Improved filecache short-circuit slightly (catching NS_MEDIA and such)
Modified paths:
  • /trunk/phase3/includes/Wiki.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Wiki.php
@@ -594,7 +594,7 @@
595595 return;
596596 }
597597
598 - if ( $wgUseFileCache && $wgTitle->getNamespace() != NS_SPECIAL ) {
 598+ if ( $wgUseFileCache && $wgTitle->getNamespace() >= 0 ) {
599599 wfProfileIn( 'main-try-filecache' );
600600 // Raw pages should handle cache control on their own,
601601 // even when using file cache. This reduces hits from clients.

Status & tagging log