magehost / varnish-purge-filter
MageHost.pro 提供的适用于 Magento 2.x 的 Varnish 清除过滤器
1.0.4
2021-08-16 10:23 UTC
Requires
- ext-curl: *
- ext-json: *
- magento/framework: >=100.0
- magento/module-backend: >=100.0
- magento/module-cache-invalidate: >=100.0
- magento/module-page-cache: >=100.0
- magento/module-store: >=100.0
- monolog/monolog: >=1.11
- psr/log: >=1.0
This package is auto-updated.
Last update: 2024-09-16 17:29:33 UTC
README
MageHost.pro 提供的免费 Varnish 清除过滤器扩展,可以为特定标签添加过滤选项。
此扩展对于防止商店管理员和应用程序在关键时刻破坏缓存非常有用。
通过 Composer 安装
composer require magehost/varnish-purge-filter
php bin/magento module:enable MageHost_VarnishPurgeFilter
php bin/magento setup:upgrade
php bin/magento setup:di:compile
用法
警告:此扩展仅在启用 Varnish 或 Fastly 时才能工作。
- 请在 商店 > 配置 > 高级 > 系统 > 全页缓存 中检查是否已启用并配置了 Varnish 或 Fastly。
- 将下拉菜单设置为 是 以在 商店 > 配置 > 高级 > 系统 > 全页缓存 > 清除过滤器 中不刷新的标签。
卸载
php bin/magento module:disable MageHost_VarnishPurgeFilter
composer remove magehost/varnish-purge-filter
php bin/magento setup:upgrade
php bin/magento setup:di:compile
描述
此扩展免费,许可协议:[MIT](https://github.com/magehost/varnish-purge-filter/blob/master/LICENSE)。
在黑色星期五期间,我们注意到由于过多的清除操作,某些环境承受了不必要的压力。
这些清除操作通常是由导入或商店管理员在最后一刻更改设置引起的。
防止清除对于保持环境健康至关重要。