From 65c8d5e76dace4fffa1565c87393f662d7c5cdbe Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 1 May 2013 15:43:56 +0400 Subject: [PATCH] update: set last_updated to now() when process starts --- include/rssfuncs.php | 4 ++++ 1 file changed, 4 insertions(+) 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"); -- 2.39.5