From: Andrew Dolgov Date: Wed, 1 May 2013 11:43:56 +0000 (+0400) Subject: update: set last_updated to now() when process starts X-Git-Tag: 1.7.9~25^2~49 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=65c8d5e76dace4fffa1565c87393f662d7c5cdbe;p=tt-rss.git update: set last_updated to now() when process starts --- diff --git a/include/rssfuncs.php b/include/rssfuncs.php index a5d3898c..08bf1fe6 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -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");