webgriffe / index-queue-extension
Magento extension that queues indexing operations.
Installs: 65
Dependents: 0
Suggesters: 0
Security: 0
Stars: 15
Watchers: 12
Forks: 3
Open Issues: 0
Type:magento-module
Requires
- lilmuckers/magento-lilmuckers_queue: dev-master
Requires (Dev)
- ecomdev/ecomdev_phpunit: *
- phpunit/phpunit: *
README
This Magento extension queues indexing operations with a queue manager backend. It's based on Lilmuckers_Queue extension.
Installation
Add the extension to your composer.json
or install it with modman.
After you should set up queue backend. For example, to use Beanstalk merge this in your local.xml
:
<?xml version="1.0"?> <config> <global> <queue> <backend>beanstalkd</backend> <beanstalkd> <servers> <server> <host>127.0.0.1</host> </server> </servers> </beanstalkd> </queue> </global> </config>
Usage
After installation all indexing operations are automatically queued. You can disable this behavior in System -> Configuration -> System -> Index Queue. To process queued indexing tasks you have to start queue watching by workers. To do that, as stated in Lilmuckers_Queue extension documentation, run the following commands:
$ cd /path/to/magento/shell
$ php queue.php --watch
Contributing
Please, contribute! Clone this repository, customize your parameters and then use provided continuous integration script to install Magento and run tests.
$ cd /some/path
$ git clone git@github.com:webgriffe/index-queue-extension.git
$ cd index-queue-extension/
$ cp params.sh.dist params.sh
Customize parameters in params.sh
file. Then run:
$ ./ci.sh
This will installs Magento in magento
directory and then will run tests with EcomDev_PHPUnit.
Credits
This extension has been developed by Webgriffe®. Please, report to us any bug or suggestion by GitHub issues.