summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-13 21:03:31 +0300
committerAndrew Dolgov <[email protected]>2010-11-13 21:03:31 +0300
commite3b42c5a809b57bac99caa48b2fca954b7985cab (patch)
tree59eeb8314ff7f0caeca6938fc3187db9a6b74f25
parent0526ffdd4c5571533f1612a76cbc9acf0bb257cd (diff)
misc daemon updates
-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)");