Improved filecache short-circuit slightly (catching NS_MEDIA and such)

This commit is contained in:
Aaron Schulz 2011-09-27 06:45:58 +00:00
parent 19ade0cc7e
commit 3cd27ff003

View file

@ -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.