kowal/module-purgevarnishcache

清除Varnish缓存

1.0.0 2024-08-26 16:37 UTC

This package is not auto-updated.

Last update: 2024-09-24 13:18:18 UTC


README

``kowal/module-purgevarnishcache``

主要功能

清除Varnish缓存

安装

* = 在生产环境中请使用 --keep-generated 选项

类型 1: 压缩文件

  • 将压缩文件解压到 app/code/Kowal
  • 通过运行 php bin/magento module:enable Kowal_PurgeVarnishCache 启用模块
  • 通过运行 php bin/magento setup:upgrade 应用数据库更新*
  • 通过运行 php bin/magento cache:flush 清除缓存

类型 2: Composer

  • 将模块放入composer仓库,例如
    • 私有仓库 repo.magento.com
    • 公共仓库 packagist.org
    • 作为vcs的公共github仓库
  • 通过运行 composer config repositories.repo.magento.com composer https://repo.magento.com/ 将composer仓库添加到配置中
  • 通过运行 composer require kowal/module-purgevarnishcache 安装模块composer
  • 通过运行 php bin/magento module:enable Kowal_PurgeVarnishCache 启用模块
  • 通过运行 php bin/magento setup:upgrade 应用数据库更新*
  • 通过运行 php bin/magento cache:flush 清除缓存

配置

规格

  • 观察者
    • adminhtml_cache_flush_all > Kowal\PurgeVarnishCache\Observer\Backend\Adminhtml\CacheFlushAll

属性