diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-04-23 05:08:48 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-04-23 05:08:48 -0400 |
commit | aee45ea91dcec4736d8b9befe17e030b873d9226 (patch) | |
tree | 524bfc90f30359536efc682d17715334251ae345 /lib | |
parent | 640628de2d593933e810b4785dfe38923b979713 (diff) |
Add an inbox queue handler
Handle distributing a notice to multiple inboxes in a queue handler
rather than in the Web action.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php index 12797891c..9b6d2941a 100644 --- a/lib/util.php +++ b/lib/util.php @@ -889,6 +889,10 @@ function common_enqueue_notice($notice) $transports[] = 'memcached'; } + if (common_config('queues', 'enabled')) { + $transports[] = 'inbox'; + } + foreach ($transports as $transport) { $qi = new Queue_item(); $qi->notice_id = $notice->id; |