]> git.wh0rd.org - tt-rss.git/commitdiff
update: set last_updated to now() when process starts
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 1 May 2013 11:43:56 +0000 (15:43 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 1 May 2013 11:43:56 +0000 (15:43 +0400)
include/rssfuncs.php

index a5d3898ce12dc605d56ee8bf8d9cd61d9bb038c6..08bf1fe6dbb217751f7da0bfb388bcc614d06ad7 100644 (file)
                        return false;
                }
 
+               // set last update to now so if anything *simplepie* crashes later we won't be
+               // continuously failing on the same feed
+               db_query("UPDATE ttrss_feeds SET last_updated = NOW() WHERE id = '$feed'");
+
                $last_updated = db_fetch_result($result, 0, "last_updated");
                $last_article_timestamp = @strtotime(db_fetch_result($result, 0, "last_article_timestamp"));
                $owner_uid = db_fetch_result($result, 0, "owner_uid");