From 4b27ee1d826f6dc5ee313e6700f13916fa7105e6 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 2 Aug 2003 19:52:05 +0000 Subject: [PATCH] Reactivate the cutoff date in the watchlist to speed up performance, hopefully; changing default to 7 days instead of the ridiculously short rc default --- includes/SpecialWatchlist.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index 189a5dc59f..cc04f1e1c2 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -14,8 +14,11 @@ function wfSpecialWatchlist() $wgOut->setRobotpolicy( "index,follow" ); if ( ! isset( $days ) ) { + /* $days = $wgUser->getOption( "rcdays" ); if ( ! $days ) { $days = 3; } + */ + $days = 7; } $days = (int)$days; list( $limit, $offset ) = wfCheckLimits( 100, "rclimit" ); @@ -44,7 +47,7 @@ function wfSpecialWatchlist() cur_user,cur_user_text,cur_timestamp,cur_minor_edit,cur_is_new FROM cur,watchlist WHERE wl_user={$uid} AND wl_title=cur_title - AND (cur_namespace=wl_namespace OR cur_namespace=wl_namespace+1) + AND {$docutoff} (cur_namespace=wl_namespace OR cur_namespace=wl_namespace+1) ORDER BY inverse_timestamp {$dolimit}"; $res = wfQuery( $sql, $fname ); if ( wfNumRows( $res ) == 0 ) { -- 2.20.1