move the precautionary timestamp bumping

This commit is contained in:
Andrew Dolgov 2013-05-02 02:20:34 +04:00
parent d0e9c40a5a
commit 5ef8409700
1 changed files with 4 additions and 4 deletions

View File

@ -210,10 +210,6 @@
return false; 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_updated = db_fetch_result($result, 0, "last_updated");
$last_article_timestamp = @strtotime(db_fetch_result($result, 0, "last_article_timestamp")); $last_article_timestamp = @strtotime(db_fetch_result($result, 0, "last_article_timestamp"));
@ -357,6 +353,10 @@
$feed_data = $plugin->hook_feed_fetched($feed_data); $feed_data = $plugin->hook_feed_fetched($feed_data);
} }
// 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'");
if (!$rss) { if (!$rss) {
$rss = new FeedParser($feed_data); $rss = new FeedParser($feed_data);
$rss->init(); $rss->init();