diff options
author | friendica <info@friendica.com> | 2014-03-19 19:53:14 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-03-19 19:53:14 -0700 |
commit | 68fc2a220e81589d86af0233b533b6b713545a24 (patch) | |
tree | 301d274de08e9b8be78edd70589e72527c11dd02 /include/poller.php | |
parent | afca10a0710511bb24ab4b382ef55233538e6589 (diff) | |
download | volse-hubzilla-68fc2a220e81589d86af0233b533b6b713545a24.tar.gz volse-hubzilla-68fc2a220e81589d86af0233b533b6b713545a24.tar.bz2 volse-hubzilla-68fc2a220e81589d86af0233b533b6b713545a24.zip |
prune_hub_reinstalls() and add cron weekly as a side effect
Diffstat (limited to 'include/poller.php')
-rw-r--r-- | include/poller.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/poller.php b/include/poller.php index 423ee46c1..bae39dd2e 100644 --- a/include/poller.php +++ b/include/poller.php @@ -105,6 +105,23 @@ function poller_run($argv, $argc){ if($d2 != intval($d1)) { + $d3 = intval(datetime_convert('UTC','UTC','now','N')); + if($d3 == 7) { + + /** + * Cron Weekly + * + * Actions in the following block are executed once per day only on Sunday (once per week). + * + */ + + require_once('include/hubloc.php'); + prune_hub_reinstalls(); + + + } + + // expire any read notifications over a month old q("delete from notify where seen = 1 and date < UTC_TIMESTAMP() - INTERVAL 30 DAY"); |