From bf7fcde8d56640e63994df528fd59631a4f58946 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 16 Jul 2007 13:22:13 +0100 Subject: daemon: periodically create stampfile --- update_daemon.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'update_daemon.php') 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); -- cgit v1.2.3-54-g00ecf