summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-14 01:42:34 +0300
committerAndrew Dolgov <[email protected]>2010-11-14 01:42:34 +0300
commita320475200cda5feb7e479bd26c58cd8803e6c64 (patch)
tree49d33a680784b2f50f378306ae2c19b2953aae4d
parent4ad8c93b95acf0ae536fa07f600f2f16204d788a (diff)
parente3b42c5a809b57bac99caa48b2fca954b7985cab (diff)
Merge branch 'master' of madoka.volgo-balt.ru:public_html/testbox/tt-rss
-rw-r--r--functions.php6
-rwxr-xr-xupdate.php8
-rwxr-xr-xupdate_daemon2.php9
3 files changed, 15 insertions, 8 deletions
diff --git a/functions.php b/functions.php
index b768d217d..572ecf105 100644
--- a/functions.php
+++ b/functions.php
@@ -5798,12 +5798,6 @@
// Send feed digests by email if needed.
if (DAEMON_SENDS_DIGESTS) send_headlines_digests($link);
- purge_orphans($link);
-
- $rc = cleanup_tags($link, 14, 50000);
-
- if ($debug) _debug("$rc uncached tags cleaned.");
-
} // function update_daemon_common
function sanitize_article_content($text) {
diff --git a/update.php b/update.php
index ac1d84c8e..873928b66 100755
--- a/update.php
+++ b/update.php
@@ -85,7 +85,13 @@
update_daemon_common($link);
} else {
$count = update_feedbrowser_cache($link);
- _debug("Finished, $count feeds processed.");
+ _debug("Feedbrowser updated, $count feeds processed.");
+
+ purge_orphans($link, true);
+
+ $rc = cleanup_tags($link, 14, 50000);
+
+ _debug("Cleaned $rc cached tags.");
}
}
diff --git a/update_daemon2.php b/update_daemon2.php
index 5ffc4f549..63f218cc4 100755
--- a/update_daemon2.php
+++ b/update_daemon2.php
@@ -214,7 +214,14 @@
update_daemon_common($link);
} else {
$count = update_feedbrowser_cache($link);
- _debug("Finished, $count feeds processed.");
+ _debug("Feedbrowser updated, $count feeds processed.");
+
+ purge_orphans($link, true);
+
+ $rc = cleanup_tags($link, 14, 50000);
+
+ _debug("Cleaned $rc cached tags.");
+
}
_debug("Elapsed time: " . (time() - $start_timestamp) . " second(s)");