aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-03 19:15:11 -0800
committerfriendica <info@friendica.com>2014-03-03 19:15:11 -0800
commitbfd9f5ec87ed0b21e278ea5c94016623c9985850 (patch)
treec8763214bcb9952080afeb6568ad5680eb4f56b8 /include/poller.php
parent12480a13cd46b5aa747dc72b42b0d78b8852d2bb (diff)
downloadvolse-hubzilla-bfd9f5ec87ed0b21e278ea5c94016623c9985850.tar.gz
volse-hubzilla-bfd9f5ec87ed0b21e278ea5c94016623c9985850.tar.bz2
volse-hubzilla-bfd9f5ec87ed0b21e278ea5c94016623c9985850.zip
enable network/matrix expiration, this should be functional but the options have been reduced/restricted so we're only looking at network posts and ignore anything that is filed, starred, or is resource_type 'photo' (which should not be possible in non-wall posts, but we just want to be sure). Will require the adventurous tester(s) to set 'channel_expire_days' in their channel record.
Diffstat (limited to 'include/poller.php')
-rw-r--r--include/poller.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/poller.php b/include/poller.php
index 77452cafa..649da30f6 100644
--- a/include/poller.php
+++ b/include/poller.php
@@ -96,9 +96,13 @@ function poller_run($argv, $argc){
$dirmode = get_config('system','directory_mode');
+ /**
+ * Cron Daily
+ *
+ * Actions in the following block are executed once per day, not on every poller run
+ *
+ */
- // Actions in the following block are executed once per day, not on every poller run
-
if($d2 != intval($d1)) {
// expire any read notifications over a month old
@@ -121,6 +125,7 @@ function poller_run($argv, $argc){
set_config('system','last_expire_day',$d2);
+ proc_run('php','include/expire.php');
proc_run('php','include/cli_suggest.php');
}