FileCache - Leave raw page cache control alone to avoid hits
[lhc/web/wiklou.git] / index.php
index 1418264..4cc6d6b 100644 (file)
--- a/index.php
+++ b/index.php
@@ -75,7 +75,9 @@ if( $wgUseAjax && $action == 'ajax' ) {
 
 if( $wgUseFileCache && isset($wgTitle) ) {
        wfProfileIn( 'main-try-filecache' );
-       if( HTMLFileCache::useFileCache() ) {
+       // Raw pages should handle control on their own
+       // even when using file cache.
+       if( $action != 'raw' && HTMLFileCache::useFileCache() ) {
                /* Try low-level file cache hit */
                $cache = new HTMLFileCache( $wgTitle, $action );
                if( $cache->isFileCacheGood( /* Assume up to date */ ) ) {