FU r97978: removed more raw page file cache code
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 24 Sep 2011 00:55:49 +0000 (00:55 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 24 Sep 2011 00:55:49 +0000 (00:55 +0000)
includes/RawPage.php

index 6a552a5..9ef4045 100644 (file)
@@ -128,18 +128,6 @@ class RawPage {
                $mode = $this->mPrivateCache ? 'private' : 'public';
                header( 'Cache-Control: ' . $mode . ', s-maxage=' . $this->mSmaxage . ', max-age=' . $this->mMaxage );
 
-               global $wgUseFileCache;
-               if( $wgUseFileCache && HTMLFileCache::useFileCache() ) {
-                       $cache = new HTMLFileCache( $this->mTitle, 'raw' );
-                       if( $cache->isFileCacheGood( /* Assume up to date */ ) ) {
-                               $cache->loadFromFileCache();
-                               $wgOut->disable();
-                               return;
-                       } else {
-                               ob_start( array( &$cache, 'saveToFileCache' ) );
-                       }
-               }
-
                $text = $this->getRawText();
 
                if( !wfRunHooks( 'RawPageViewBeforeOutput', array( &$this, &$text ) ) ) {