Add an inbox queue handler

Handle distributing a notice to multiple inboxes in a queue handler
rather than in the Web action.
This commit is contained in:
Evan Prodromou
2009-04-23 05:08:48 -04:00
parent 640628de2d
commit aee45ea91d
5 changed files with 68 additions and 3 deletions

View File

@@ -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;