aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-11 14:19:20 -0800
committerfriendica <info@friendica.com>2014-02-11 14:19:20 -0800
commitd02529fde1ee9d7ecf317ae30abce666e1b33eb4 (patch)
treef3801707655b40ea81fbe367753f1db5786432d6 /include/poller.php
parent841f3922aab013ac1ae1b7715de95f8246fe4f25 (diff)
downloadvolse-hubzilla-d02529fde1ee9d7ecf317ae30abce666e1b33eb4.tar.gz
volse-hubzilla-d02529fde1ee9d7ecf317ae30abce666e1b33eb4.tar.bz2
volse-hubzilla-d02529fde1ee9d7ecf317ae30abce666e1b33eb4.zip
implement a forced directory update mode where we unconditionally create a directory sync packet. This is needed to ensure that monthly directory pings are propagated to other directory servers so they can each prove for themselves whether or not an account is alive or dead. We do not trust other directories to provide us information beyond "look at this entry and decide for yourself" as doing otherwise would invite rogue directory manipulations. As this scheduled update occurs on all channels across all servers, we should also pick up refresh messages from all existing channel clones and these should also propagate out to all directory servers using the same mechanism (though perhaps not at the same time).
Diffstat (limited to 'include/poller.php')
-rw-r--r--include/poller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/poller.php b/include/poller.php
index 76c82db09..eba765278 100644
--- a/include/poller.php
+++ b/include/poller.php
@@ -64,7 +64,7 @@ function poller_run($argv, $argc){
$r = q("select channel_id from channel where channel_dirdate < UTC_TIMESTAMP() - INTERVAL 30 DAY");
if($r) {
foreach($r as $rr) {
- proc_run('php','include/directory.php',$rr['channel_id'],'ping');
+ proc_run('php','include/directory.php',$rr['channel_id'],'force');
if($interval)
@time_sleep_until(microtime(true) + (float) $interval);
}