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 /classes/Notice.php | |
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 'classes/Notice.php')
-rw-r--r-- | classes/Notice.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/Notice.php b/classes/Notice.php index fbfeb9489..ff00f2a94 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -197,7 +197,10 @@ class Notice extends Memcached_DataObject $notice->saveTags(); $notice->saveGroups(); - $notice->addToInboxes(); + if (!common_config('queues', 'enabled')) { + $notice->addToInboxes(); + } + $notice->query('COMMIT'); Event::handle('EndNoticeSave', array($notice)); |