From: Aaron Schulz Date: Sat, 24 Sep 2011 00:55:49 +0000 (+0000) Subject: FU r97978: removed more raw page file cache code X-Git-Tag: 1.31.0-rc.0~27451 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27votes%27%2C%20votes=%27waiting%27%29%20%7D%7D?a=commitdiff_plain;h=9ef2ebad9d7ed1361a84f13ba0c9b9f5e440ff13;p=lhc%2Fweb%2Fwiklou.git FU r97978: removed more raw page file cache code --- diff --git a/includes/RawPage.php b/includes/RawPage.php index 6a552a5032..9ef4045fad 100644 --- a/includes/RawPage.php +++ b/includes/RawPage.php @@ -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 ) ) ) {