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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user