定制 develodesign/magento2-module-cachelog 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

develodesign/magento2-module-cachelog

最新稳定版本:1.0.0

Composer 安装命令:

composer require develodesign/magento2-module-cachelog

包简介

Module for logging cache cleaning operations

README 文档

README

This module provides a logging mechanism for cache invalidation and cleaning events in Magento 2. It helps developers and administrators track when, how, and from where the cache is being flushed, which is invaluable for debugging complex caching issues, especially those related to Varnish and third-party integrations.

Screenshot 2025-10-09 at 12 55 45 (1)

Features

  • Logs cache cleaning events to a dedicated database table.
  • Records details like the invalidation type (tags or type list), specific cache tags, the area of the application that triggered the cleaning (admin, frontend, cron), and a timestamp.
  • Specifically logs Varnish purge actions, which can be very numerous and performance-intensive.
  • Provides an admin grid to view, filter, and search cache log entries.
  • Allows for mass deletion of log entries from the admin grid.
  • Module and logging functionality can be enabled or disabled via system configuration.

Installation

  1. Require the module using Composer:

    composer require develodesign/magento2-module-cachelog
  2. Enable the module:

    bin/magento module:enable Develodesign_CacheLog
  3. Run setup scripts:

    bin/magento setup:upgrade
  4. Compile dependencies:

    bin/magento setup:di:compile
  5. Deploy static content (if in production mode):

    bin/magento setup:static-content:deploy

Configuration

  1. Navigate to Stores > Configuration > Develodesign > Cache Log.
  2. In the General Settings section, you can:
    • Enable Cache Logging: Globally turn the cache logging functionality on or off.
    • Enable Varnish Purge Logging: Specifically enable or disable logging for Varnish purges. It is recommended to disable this after a short debugging period, as it can generate a large number of log entries.

Usage

To view the cache cleaning logs, navigate to System > Tools > Clean Cache Log in the Magento admin panel.

License

This module is licensed under the Open Software License (OSL 3.0) and the Academic Free License (AFL 3.0).

统计信息

  • 总下载量: 275
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 12
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2025-10-09