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:
fd2031a
)
Don't use filecache if $parserOutput->containsOldMagic() either
author
Aaron Schulz
<aaron@users.mediawiki.org>
Fri, 26 Sep 2008 13:55:42 +0000
(13:55 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Fri, 26 Sep 2008 13:55:42 +0000
(13:55 +0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
fd063ec
..
28a83b7
100644
(file)
--- a/
includes/Article.php
+++ b/
includes/Article.php
@@
-3479,7
+3479,9
@@
class Article {
$parserCache->save( $parserOutput, $this, $wgUser );
}
// Make sure file cache is not used on uncacheable content.
- if( $wgUseFileCache && $parserOutput->getCacheTime() == -1 ) {
+ // Output that has magic words in it can still use the parser cache
+ // (if enabled), though it will generally expire sooner.
+ if( $parserOutput->getCacheTime() == -1 || $parserOutput->containsOldMagic() ) {
$wgUseFileCache = false;
}