From: Brion Vibber Date: Sat, 2 Aug 2003 19:52:05 +0000 (+0000) Subject: Reactivate the cutoff date in the watchlist to speed up performance, hopefully; chang... X-Git-Tag: 1.1.0~365 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=4b27ee1d826f6dc5ee313e6700f13916fa7105e6;p=lhc%2Fweb%2Fwiklou.git Reactivate the cutoff date in the watchlist to speed up performance, hopefully; changing default to 7 days instead of the ridiculously short rc default --- 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 ) {