webscale-networks / magento-varnish-split-header
Webscale 子模块,负责分割 Varnish 的 X-Magento-Tags 头部。
2.3.5.0
2023-11-30 17:38 UTC
Requires
- php: >=7.3
- magento/magento2-base: >2.3.4
- webscale-networks/magento-varnish-api: *
This package is not auto-updated.
Last update: 2024-09-25 19:27:18 UTC
README
当 Varnish 作为缓存解决方案被选中时,负责分割 X-Magento-Tags 头部的子模块。
安装
要安装扩展,请在 Magento 根目录下运行以下命令
composer config repositories.webscale-networks-split-header git https://github.com/webscale-networks/magento-varnish-split-header.git
为了避免 CI/CD 和 GitHub 的问题,将 "no-api": true
添加到仓库设置中,使其看起来像这样
"webscale-networks": { "type": "git", "url": "https://github.com/webscale-networks/magento-varnish-split-header.git", "no-api": true }
现在需要扩展本身
composer require webscale-networks/magento-varnish-split-header
Composer 安装包后,运行以下 Magento 命令
php bin/magento module:enable Webscale_SplitHeader php bin/magento setup:upgrade bin/magento cache:clean
完成后,登录到 Magento 管理面板并继续配置扩展。
配置
打开浏览器,登录到 Magento 管理界面并导航到
Stores > Configuration > Webscale > Varnish
通过将 Enable Split Tags
下的 Enabled
切换为 Yes
来启用模块,并保存配置。