Don't cache zero-length 'pages' from redirects
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 10 Jul 2003 05:00:22 +0000 (05:00 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 10 Jul 2003 05:00:22 +0000 (05:00 +0000)
includes/Article.php

index 17226b3..f0def94 100644 (file)
@@ -1667,6 +1667,7 @@ name=\"wpSummary\" maxlength=200 size=60><br>
        
        function saveToFileCache( $text ) {
                global $wgUseGzip, $wgCompressByDefault;
+               if(length($text) == 0) return "";
                
         wfDebug(" saveToFileCache()\n", false);
                $filename=$this->fileCacheName();