webgriffe/index-queue-extension

Magento extension that queues indexing operations.

1.0.8 2017-06-23 10:56 UTC

This package is auto-updated.

Last update: 2022-05-07 16:08:44 UTC


README

Build Status

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.