From 3cd27ff00328ae4ff8f2df0f30d3c375cdad0298 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 27 Sep 2011 06:45:58 +0000 Subject: [PATCH] Improved filecache short-circuit slightly (catching NS_MEDIA and such) --- includes/Wiki.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Wiki.php b/includes/Wiki.php index 74e93d18f2..f5f6d8426d 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -594,7 +594,7 @@ class MediaWiki { return; } - if ( $wgUseFileCache && $wgTitle->getNamespace() != NS_SPECIAL ) { + if ( $wgUseFileCache && $wgTitle->getNamespace() >= 0 ) { wfProfileIn( 'main-try-filecache' ); // Raw pages should handle cache control on their own, // even when using file cache. This reduces hits from clients. -- 2.20.1