aboutsummaryrefslogtreecommitdiffstats
path: root/include/notifier.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-19 02:42:11 -0700
committerfriendica <info@friendica.com>2012-05-19 02:42:11 -0700
commit513ef2410d9b892c8ebcb7ceac96b97023c3b5a5 (patch)
tree0430bade8ef823fc49c6f3de0f133c38b3c384a0 /include/notifier.php
parenta49bd0a6866a911d9d3c7a6df9a2cd23827a804f (diff)
downloadvolse-hubzilla-513ef2410d9b892c8ebcb7ceac96b97023c3b5a5.tar.gz
volse-hubzilla-513ef2410d9b892c8ebcb7ceac96b97023c3b5a5.tar.bz2
volse-hubzilla-513ef2410d9b892c8ebcb7ceac96b97023c3b5a5.zip
backend support for 'x' deliveries per process - x is configurable, more importantly any search starting with # is automatically a tag search. TODO: Need to extend this to people searches starting with @
Diffstat (limited to 'include/notifier.php')
-rw-r--r--include/notifier.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/notifier.php b/include/notifier.php
index ea4a1bea8..8b904dbcd 100644
--- a/include/notifier.php
+++ b/include/notifier.php
@@ -478,6 +478,12 @@ function notifier_run($argv, $argc){
}
}
+ $deliveries_per_process = intval(get_config('system','delivery_batch_count'));
+ if($deliveries_per_process <= 0)
+ $deliveries_per_process = 1;
+
+ $this_batch = array();
+
foreach($r as $contact) {
if($contact['self'])
continue;
@@ -486,6 +492,7 @@ function notifier_run($argv, $argc){
// we will deliver single recipient types of message and email receipients here.
if((! $mail) && (! $fsuggest) && (! $followup)) {
+ // deliveries per process not yet implemented, 1 delivery per process.
proc_run('php','include/delivery.php',$cmd,$item_id,$contact['id']);
if($interval)
@time_sleep_until(microtime(true) + (float) $interval);