update: set last_updated to now() when process starts

This commit is contained in:
Andrew Dolgov 2013-05-01 15:43:56 +04:00
parent d571740b33
commit 65c8d5e76d
1 changed files with 4 additions and 0 deletions

View File

@ -212,6 +212,10 @@
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");