ibexa

Path

ez publish / technical manual / 5.x / features / queue handling in asynchron... / make prioritizations in the...


Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

  • Make prioritizations in the queue via filtering hooks

    Filtering hooks

    The asynchronous publishing system comes with filtering hooks that can easily be implemented in order to prevent items from being published asynchronously.

    You can configure as many filters as you want, as PHP classes. Each filter will be called sequentially, and will either accept the object for asynchronous publishing, or reject it. If a filter rejects an object, filters processing will be stopped, and the object will be published synchronously.

    Priority handling

    By default, Asynchronous Publishing will handle publishing operations in a very simple FIFO fashion. First item in, first item out. The system will work well in common situations, there are, however, a few cases where you don't want this. For instance, if you have regular imports of massive amount of content, you clearly don't want the publishing queue to be blocked for X minutes by the import, leaving your editors in despair while they wait forever for their content to be published.

    The hook system uses the SignalSlot eZComponent. By reading the documentation for it, you will notice that you can attach multiple calls to any hook by simply calling several times the connect method. Hooks will be called in the order they were registered.

    Geir Arne Waaler (04/03/2011 12:37 pm)

    Geir Arne Waaler (04/03/2011 2:09 pm)


    Comments

    There are no comments.