From e81610d9ef6b20400dfc1ab13b1d28cc0de32a84 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 30 Mar 2013 16:28:21 +0400 Subject: daemon: sort by random --- include/rssfuncs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/rssfuncs.php') diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 01a11da6b..0c5a0153b 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -108,7 +108,7 @@ $random_qpart = sql_random_function(); // We search for feed needing update. - $result = db_query($link, "SELECT DISTINCT ttrss_feeds.feed_url + $result = db_query($link, "SELECT DISTINCT ttrss_feeds.feed_url,$random_qpart FROM ttrss_feeds, ttrss_users, ttrss_user_prefs WHERE @@ -117,7 +117,7 @@ AND ttrss_user_prefs.pref_name = 'DEFAULT_UPDATE_INTERVAL' $login_thresh_qpart $update_limit_qpart $updstart_thresh_qpart - ORDER BY feed_url $query_limit"); + ORDER BY $random_qpart $query_limit"); $user_prefs_cache = array(); -- cgit v1.2.3