imi/magento2-cache-debug

一个 Magento 2 模块,允许你在生产模式下添加完整的页面缓存调试头部。

v1.0.0 2022-09-22 12:09 UTC

This package is auto-updated.

Last update: 2024-09-09 12:26:21 UTC


README

此模块允许你在生产模式下启用完整的页面缓存调试头部。

先决条件

此模块需要 PHP 8.1 和至少 Magento 2.4.4。

安装

通过 Composer(推荐)

  1. 要求包
composer require imi/magento2-cache-debug
  1. 启用模块
bin/magento module:enable IMI_CacheDebug
bin/magento setup:upgrade
  1. 在配置中启用它
    1. 通过 CLI
    bin/magento config:set system/full_page_cache/production_logging_enabled 1 
    1. 或在管理员面板下 店铺 > 设置 > 配置 > 高级 > 系统 > 全页缓存 > 生产模式下启用日志记录
  2. 刷新配置缓存
bin/magento cache:flush config

手动下载

下载此存储库并将其解压缩到 app/code/IMI/CacheDebug 下,然后按照通过 composer 的安装步骤 2.- 4.