summaryrefslogtreecommitdiff
path: root/update_daemon.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-07-16 13:22:13 +0100
committerAndrew Dolgov <[email protected]>2007-07-16 13:22:13 +0100
commitbf7fcde8d56640e63994df528fd59631a4f58946 (patch)
tree25efd79b9dc5834aa8d35c230900c8b9b2d3ca90 /update_daemon.php
parentaf6f8bf241674e177a6ecc0eac77bb267aca3b94 (diff)
daemon: periodically create stampfile
Diffstat (limited to 'update_daemon.php')
-rw-r--r--update_daemon.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/update_daemon.php b/update_daemon.php
index 528418fb3..b7a511688 100644
--- a/update_daemon.php
+++ b/update_daemon.php
@@ -71,6 +71,11 @@
while (true) {
+ if (!make_stampfile('update_daemon.stamp')) {
+ print "error: unable to create stampfile";
+ die;
+ }
+
if (time() - $last_purge > PURGE_INTERVAL) {
_debug("Purging old posts (random 30 feeds)...");
global_purge_old_posts($link, true, 30);