diff options
author | Mario <mario@mariovavti.com> | 2022-12-12 09:03:49 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-12-12 09:03:49 +0000 |
commit | e3a19469eb6940249ad87662399d14dbf2a79847 (patch) | |
tree | e793f2476b550eb93bb141143876e2019dd44021 /Zotlabs/Daemon/Cron.php | |
parent | 45f8e43be425b9718aa9ac819256ea407af900f0 (diff) | |
download | volse-hubzilla-e3a19469eb6940249ad87662399d14dbf2a79847.tar.gz volse-hubzilla-e3a19469eb6940249ad87662399d14dbf2a79847.tar.bz2 volse-hubzilla-e3a19469eb6940249ad87662399d14dbf2a79847.zip |
bring back poll and delivery interval
Diffstat (limited to 'Zotlabs/Daemon/Cron.php')
-rw-r--r-- | Zotlabs/Daemon/Cron.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Zotlabs/Daemon/Cron.php b/Zotlabs/Daemon/Cron.php index 9b8946e57..b8bcbe3a2 100644 --- a/Zotlabs/Daemon/Cron.php +++ b/Zotlabs/Daemon/Cron.php @@ -52,7 +52,7 @@ class Cron { require_once('include/account.php'); remove_expired_registrations(); - //$interval = get_config('system', 'delivery_interval', 3); + $interval = get_config('system', 'delivery_interval', 3); // expire any expired items @@ -67,10 +67,10 @@ class Cron { if ($rr['item_wall']) { // The notifier isn't normally invoked unless item_drop is interactive. Master::Summon(['Notifier', 'drop', $rr['id']]); - /* - if ($interval) + + if ($interval) { @time_sleep_until(microtime(true) + (float)$interval); - */ + } } } } @@ -100,10 +100,10 @@ class Cron { if ($r) { foreach ($r as $rr) { Master::Summon(array('Directory', $rr['channel_id'], 'force')); - /* - if ($interval) + + if ($interval) { @time_sleep_until(microtime(true) + (float)$interval); - */ + } } } @@ -157,10 +157,10 @@ class Cron { ); } Master::Summon(array('Notifier', 'wall-new', $rr['id'])); - /* - if ($interval) + + if ($interval) { @time_sleep_until(microtime(true) + (float)$interval); - */ + } } } } |