r97980 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97979‎ | r97980 | r97981 >
Date:00:55, 24 September 2011
Author:aaron
Status:ok
Tags:
Comment:
FU r97978: removed more raw page file cache code
Modified paths:
  • /trunk/phase3/includes/RawPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/RawPage.php
@@ -128,18 +128,6 @@
129129 $mode = $this->mPrivateCache ? 'private' : 'public';
130130 header( 'Cache-Control: ' . $mode . ', s-maxage=' . $this->mSmaxage . ', max-age=' . $this->mMaxage );
131131
132 - global $wgUseFileCache;
133 - if( $wgUseFileCache && HTMLFileCache::useFileCache() ) {
134 - $cache = new HTMLFileCache( $this->mTitle, 'raw' );
135 - if( $cache->isFileCacheGood( /* Assume up to date */ ) ) {
136 - $cache->loadFromFileCache();
137 - $wgOut->disable();
138 - return;
139 - } else {
140 - ob_start( array( &$cache, 'saveToFileCache' ) );
141 - }
142 - }
143 -
144132 $text = $this->getRawText();
145133
146134 if( !wfRunHooks( 'RawPageViewBeforeOutput', array( &$this, &$text ) ) ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r97978Removed action=raw support from HTMLFileCache. Obsolete due to RL.aaron00:37, 24 September 2011

Status & tagging log