Page 1 of 1

Problem with "disable updates" feeds again

Posted: 01 Jun 2012, 20:15
by conzeit
since about a week some feed folders set to "disable updates" keep updating often, for no reason that I can see. I guess I could just remove these feeds, but I like to view them sporadically and not get updates the rest of the time.

Please help me oh wonderous fox. :p Sorry to bother so much (seems I'm the only one who posts here and it's often these little bugs)

Re: Problem with "disable updates" feeds again

Posted: 01 Jun 2012, 21:50
by fox
Weird, this probably is related to latest changes with manual update handling. I'll look into it.

Re: Problem with "disable updates" feeds again

Posted: 02 Jun 2012, 05:48
by gmargo
What version of the code are you using? The lastest in git, or a specific release?

I haven't seen a problem so far, but now I've got several feeds with updates disabled, so I'll look out for problems.

Re: Problem with "disable updates" feeds again

Posted: 02 Jun 2012, 08:40
by fox
Online is currently at last release I think.

Re: Problem with "disable updates" feeds again

Posted: 02 Jun 2012, 11:20
by fox
Disabled feeds definitely do update now, so looks like you broke it. :)

Code: Select all

  $update_limit_qpart = "AND ((
               ttrss_feeds.update_interval = 0
               AND ttrss_feeds.last_updated < NOW() - CAST((ttrss_user_prefs.value || ' minutes') AS INTERVAL)
            ) OR (
               ttrss_feeds.update_interval > 0
               AND ttrss_feeds.last_updated < NOW() - CAST((ttrss_feeds.update_interval || ' minutes') AS INTERVAL)
            ) OR ttrss_feeds.last_updated IS NULL
            OR last_updated = '1970-01-01 00:00:00')";


Last clause is going to match feeds with update_interval < 0 if they have never been updated or manual update have been scheduled (which makes sense, we want feeds to be updated manually even when auto-updates are disabled). Maybe that's what happens? If so, I don't see this as broken.

btw just wanted to mention that I'm not using feedburner anymore for forum rss feed (forum/rss.php).

Edit: Yep, only feeds that updated for me had 1970-01-01 last_updated, so I tend to file this as "works as intended".

Re: Problem with "disable updates" feeds again

Posted: 03 Jun 2012, 05:51
by gmargo
fox wrote:Online is currently at last release I think.


Sorry I didn't make it clear - I was asking for the OP's version. Moot now.

Re: Problem with "disable updates" feeds again

Posted: 03 Jun 2012, 11:03
by fox
Yep, I've posted the version cause this was asked in Online forum. :)