dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7fa47e0
)
FU r97978: removed more raw page file cache code
author
Aaron Schulz
<aaron@users.mediawiki.org>
Sat, 24 Sep 2011 00:55:49 +0000
(
00:55
+0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Sat, 24 Sep 2011 00:55:49 +0000
(
00:55
+0000)
includes/RawPage.php
patch
|
blob
|
history
diff --git
a/includes/RawPage.php
b/includes/RawPage.php
index
6a552a5
..
9ef4045
100644
(file)
--- 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 );
$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 ) ) ) {
$text = $this->getRawText();
if( !wfRunHooks( 'RawPageViewBeforeOutput', array( &$this, &$text ) ) ) {