From 752c928387e3c4b34bfa3340d5b9121eb81d79e1 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 2 Apr 2006 03:11:33 +0000 Subject: [PATCH] Don't list pages from the MediaWiki namespace, it makes updateSpecialPages.php take all day for small wikis, and we have a lot of small wikis. --- includes/SpecialUnwatchedpages.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/SpecialUnwatchedpages.php b/includes/SpecialUnwatchedpages.php index 1111f1ca29..aca2a3379d 100644 --- a/includes/SpecialUnwatchedpages.php +++ b/includes/SpecialUnwatchedpages.php @@ -26,6 +26,7 @@ class UnwatchedpagesPage extends QueryPage { function getSQL() { $dbr =& wfGetDB( DB_SLAVE ); extract( $dbr->tableNames( 'page', 'watchlist' ) ); + $mwns = NS_MEDIAWIKI; return " SELECT @@ -35,7 +36,7 @@ class UnwatchedpagesPage extends QueryPage { page_namespace as value FROM $page LEFT JOIN $watchlist ON wl_namespace = page_namespace AND page_title = wl_title - WHERE wl_title IS NULL AND page_is_redirect = 0 + WHERE wl_title IS NULL AND page_is_redirect = 0 AND page_namespace<>$mwns "; } -- 2.20.1