daemon: sort by random
This commit is contained in:
parent
8292d05b7c
commit
e81610d9ef
|
@ -108,7 +108,7 @@
|
||||||
$random_qpart = sql_random_function();
|
$random_qpart = sql_random_function();
|
||||||
|
|
||||||
// We search for feed needing update.
|
// 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
|
FROM
|
||||||
ttrss_feeds, ttrss_users, ttrss_user_prefs
|
ttrss_feeds, ttrss_users, ttrss_user_prefs
|
||||||
WHERE
|
WHERE
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
AND ttrss_user_prefs.pref_name = 'DEFAULT_UPDATE_INTERVAL'
|
AND ttrss_user_prefs.pref_name = 'DEFAULT_UPDATE_INTERVAL'
|
||||||
$login_thresh_qpart $update_limit_qpart
|
$login_thresh_qpart $update_limit_qpart
|
||||||
$updstart_thresh_qpart
|
$updstart_thresh_qpart
|
||||||
ORDER BY feed_url $query_limit");
|
ORDER BY $random_qpart $query_limit");
|
||||||
|
|
||||||
$user_prefs_cache = array();
|
$user_prefs_cache = array();
|
||||||
|
|
||||||
|
|
|
@ -153,7 +153,7 @@
|
||||||
|
|
||||||
if (isset($options["daemon-loop"])) {
|
if (isset($options["daemon-loop"])) {
|
||||||
if (!make_stampfile('update_daemon.stamp')) {
|
if (!make_stampfile('update_daemon.stamp')) {
|
||||||
die("error: unable to create stampfile\n");
|
_debug("warning: unable to create stampfile\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Call to the feed batch update function
|
// Call to the feed batch update function
|
||||||
|
|
|
@ -240,7 +240,7 @@
|
||||||
// We disable stamp file, since it is of no use in a multiprocess update.
|
// We disable stamp file, since it is of no use in a multiprocess update.
|
||||||
// not really, tho for the time being -fox
|
// not really, tho for the time being -fox
|
||||||
if (!make_stampfile('update_daemon.stamp')) {
|
if (!make_stampfile('update_daemon.stamp')) {
|
||||||
die("error: unable to create stampfile\n");
|
_debug("warning: unable to create stampfile\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Call to the feed batch update function
|
// Call to the feed batch update function
|
||||||
|
|
Loading…
Reference in New Issue