From eca22088e751be7468f7503a53a44de3e4d10ce6 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 17 Apr 2005 08:08:13 +0000 Subject: [PATCH] Don't use the parser cache for non-existent articles --- includes/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1