webgriffe/index-queue-extension

Magento 扩展,用于排队索引操作。

安装: 65

依赖项: 0

建议者: 0

安全: 0

星星: 15

关注者: 12

分支: 3

公开问题: 0

类型:magento-module

1.0.8 2017-06-23 10:56 UTC

This package is auto-updated.

Last update: 2024-09-07 21:18:13 UTC


README

Build Status

此 Magento 扩展通过队列管理后端排队索引操作。它基于 Lilmuckers_Queue 扩展。

安装

将扩展添加到您的 composer.json 文件中,或使用 modman 安装它。之后,您应设置队列后端。例如,要使用 Beanstalk,请将以下内容合并到您的 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>

使用方法

安装后,所有索引操作都会自动排队。您可以在 系统 -> 配置 -> 系统 -> 索引队列 中禁用此行为。要处理排队的索引任务,您必须通过工作进程启动队列监视。根据 Lilmuckers_Queue 扩展文档,运行以下命令

$ cd /path/to/magento/shell
$ php queue.php --watch

贡献

请贡献!克隆此仓库,自定义您的参数,然后使用提供的持续集成脚本来安装 Magento 并运行测试。

$ cd /some/path
$ git clone git@github.com:webgriffe/index-queue-extension.git
$ cd index-queue-extension/
$ cp params.sh.dist params.sh

params.sh 文件中自定义参数。然后运行

$ ./ci.sh

这将安装在 magento 目录中安装 Magento,然后使用 EcomDev_PHPUnit 运行测试。

致谢

此扩展由 Webgriffe® 开发。请通过 GitHub 问题报告向我们报告任何错误或建议。