From a3e7e46c3bc5306bc5b488f3fe4c2505b68b007b Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 27 Feb 2004 02:24:14 +0000 Subject: [PATCH] bug fix -- parser cache used when it shouldn't be --- includes/Article.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index bdba4a74b6..55f218adbd 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -305,7 +305,8 @@ class Article { { global $wgUser, $wgOut, $wgLang; global $oldid, $diff; # From query - global $wgLinkCache, $IP; + global $wgLinkCache, $IP, $wgEnableParserCache; + $fname = "Article::view"; wfProfileIn( $fname ); @@ -354,7 +355,12 @@ class Article { } $wgLinkCache->preFill( $this->mTitle ); - $wgOut->addWikiText( $text, true, $this ); + + if( $wgEnableParserCache && intval($wgUser->getOption( "stubthreshold" )) == 0 ){ + $wgOut->addWikiText( $text, true, $this ); + } else { + $wgOut->addWikiText( $text ); + } $this->viewUpdates(); wfProfileOut( $fname ); -- 2.20.1