r67823 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r67822
|
r67823
|
r67824
>
Date:
15:37, 10 June 2010
Author:
ialex
Status:
ok
Tags:
Comment:
* Fix for
r67185
: cache the page if caching is allowed, not the opposite :)
* also removed useless check for $this (can this ever be false?)
Modified paths:
/trunk/phase3/includes/Article.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/Article.php
—
—
@@ -4458,7 +4458,7 @@
4459
4459
$this->mTitle->getPrefixedDBkey() ) );
4460
4460
}
4461
4461
4462
- if ( $wgEnableParserCache && $cache && $this && !$this->mParserOutput->isCacheable() ) {
4462
+ if ( $wgEnableParserCache && $cache && $this->mParserOutput->isCacheable() ) {
4463
4463
$parserCache = ParserCache::singleton();
4464
4464
$parserCache->save( $this->mParserOutput, $this, $parserOptions );
4465
4465
}
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r67185
allow parser/extensions to control for how long a ParserOutput gets cached. I...
daniel
14:28, 1 June 2010
Status & tagging log
20:43, 12 June 2010
Catrope
(
talk
|
contribs
)
changed the
status
of r67823
[
removed:
new
added:
ok]