Don't cache pages that don't exist
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 1 Sep 2003 19:40:52 +0000 (19:40 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 1 Sep 2003 19:40:52 +0000 (19:40 +0000)
includes/Article.php

index ac1951b..a7ed414 100644 (file)
@@ -1089,6 +1089,7 @@ class Article {
                global $action, $oldid, $diff, $redirect, $printable;
                return $wgUseFileCache
                        and (!$wgShowIPinHeader)
+                       and ($this->getID() != 0)
                        and ($wgUser->getId() == 0)
                        and (!$wgUser->getNewtalk())
                        and ($this->mTitle->getNamespace != Namespace::getSpecial())