X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=include%2Frssfuncs.php;h=727e42897795f2ce0300239467fdbd4fb5378e71;hb=c541d3a57e061521aa24d41dcedee0b1831f71c3;hp=e3b1e44b21649040b3a9bdb0e5cf4bc1eb888a1c;hpb=5e736e4592d27107d69d9b7fbd19ae91b209956e;p=tt-rss.git diff --git a/include/rssfuncs.php b/include/rssfuncs.php index e3b1e44b..727e4289 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -159,7 +159,7 @@ // since we have the data cached, we can deal with other feeds with the same url - $tmp_result = db_query($link, "SELECT ttrss_feeds.feed_url,ttrss_feeds.id,last_updated + $tmp_result = db_query($link, "SELECT DISTINCT ttrss_feeds.id,last_updated FROM ttrss_feeds, ttrss_users, ttrss_user_prefs WHERE ttrss_user_prefs.owner_uid = ttrss_feeds.owner_uid AND ttrss_users.id = ttrss_user_prefs.owner_uid AND @@ -168,7 +168,7 @@ (ttrss_feeds.update_interval > 0 OR ttrss_user_prefs.value != '-1') $login_thresh_qpart - ORDER BY feed_url $query_limit"); + ORDER BY ttrss_feeds.id $query_limit"); if (db_num_rows($tmp_result) > 0) { while ($tline = db_fetch_assoc($tmp_result)) { @@ -286,7 +286,8 @@ $force_refetch = isset($_REQUEST["force_refetch"]); $feed_data = fetch_file_contents($fetch_url, false, - $auth_login, $auth_pass, false, $no_cache ? 15 : 45, + $auth_login, $auth_pass, false, + $no_cache ? FEED_FETCH_NO_CACHE_TIMEOUT : FEED_FETCH_TIMEOUT, $force_refetch ? 0 : max($last_updated_timestamp, $cache_timestamp)); if ($debug_enabled) {