From: Tim Starling Date: Sun, 17 Apr 2005 08:08:13 +0000 (+0000) Subject: Don't use the parser cache for non-existent articles X-Git-Tag: 1.5.0alpha1~245 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=eca22088e751be7468f7503a53a44de3e4d10ce6;p=lhc%2Fweb%2Fwiklou.git Don't use the parser cache for non-existent articles --- diff --git a/includes/Article.php b/includes/Article.php index 3b98ca6a23..4b8b92d440 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -672,7 +672,7 @@ class Article { } } # Should the parser cache be used? - if ( $wgEnableParserCache && intval($wgUser->getOption( 'stubthreshold' )) == 0 && empty( $oldid ) ) { + if ( $wgEnableParserCache && intval($wgUser->getOption( 'stubthreshold' )) == 0 && empty( $oldid ) && $this->getID() ) { $pcache = true; } else { $pcache = false;