From 8143ae1f2b61c6ad7255b090b47447d3680e22bf Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 9 Sep 2005 08:45:54 +0100 Subject: more work on tag support --- functions.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index f4628a812..82ff0cbd8 100644 --- a/functions.php +++ b/functions.php @@ -17,10 +17,12 @@ db_query($link, "BEGIN"); - $result = db_query($link, "SELECT feed_url,id FROM ttrss_feeds"); + $result = db_query($link, "SELECT feed_url,id,last_updated FROM ttrss_feeds"); while ($line = db_fetch_assoc($result)) { - update_rss_feed($link, $line["feed_url"], $line["id"]); + if ($line["last_updated"] && time() - strtotime($line["last_updated"]) > 1800) { + update_rss_feed($link, $line["feed_url"], $line["id"]); + } } purge_old_posts($link); @@ -363,7 +365,7 @@ $feed_icon = ""; } - $feed = "$feed_title"; + $feed = "$feed_title"; print "
  • "; if (ENABLE_FEED_ICONS) { -- cgit v1.2.3-54-g00ecf