CC-2096 Schedule changes should be sent to RabbitMQ at most once per user request

Implemented as a plugin to Zend.  Now at most one schedule push to RabbitMQ
will happen per user action.  It's pretty sweet.
This commit is contained in:
paul.baranowski 2011-03-23 23:24:06 -04:00
parent 50432c0b66
commit f9c8a7cc11
3 changed files with 47 additions and 23 deletions

View file

@ -0,0 +1,9 @@
<?php
class RabbitMqPlugin extends Zend_Controller_Plugin_Abstract
{
public function dispatchLoopShutdown()
{
RabbitMq::PushScheduleFinal();
}
}