integer-net / magento2-async-varnish
Magento 2 模块,用于延迟和打包发送给 Varnish 的清除请求,以减少 HTTP 请求的数量并提高大量更新的速度
1.0.0
2019-11-22 10:07 UTC
Requires
- php: >=7.1.0
- magento/framework: ^100.1|^101.0|^102.0
- magento/module-page-cache: ^100.0.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-08-26 00:58:19 UTC
README
将缓存标签保存到数据库中,通过 cronjob 延迟清除,而不是直接执行。
用法
- 通过 crontab
- 运行
bin/magento integernet:asyncvarnish:purge
安装
- 通过 composer 安装
composer require integer-net/magento2-async-varnish
- 启用模块
bin/magento setup:upgrade
配置
不需要配置。
变更日志
请参阅 CHANGELOG 了解最近的变化。
测试
Magento 集成测试
-
在
dev/tests/integration/etc/install-config-mysql.php
中配置测试数据库。在 Magento 文档中了解更多。 -
将包中的
tests/Integration/phpunit.xml.dist
复制到您的 Magento 安装中的dev/tests/integration/phpunit.xml
。 -
在该目录中,运行
../../../vendor/bin/phpunit
贡献
请参阅 CONTRIBUTING 了解详细信息。
安全
如果您发现任何安全问题,请通过电子邮件 fs@integer-net.de 而不是使用问题跟踪器。
致谢
许可证
MIT 许可证 (MIT)。请参阅 许可证文件 了解更多信息。