Don't use the parser cache for non-existent articles
authorTim Starling <tstarling@users.mediawiki.org>
Sun, 17 Apr 2005 08:08:13 +0000 (08:08 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sun, 17 Apr 2005 08:08:13 +0000 (08:08 +0000)
includes/Article.php

index 3b98ca6..4b8b92d 100644 (file)
@@ -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;