PHPackages                             develodesign/magento2-module-cachelog - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. develodesign/magento2-module-cachelog

ActiveMagento2-module[Logging &amp; Monitoring](/categories/logging)

develodesign/magento2-module-cachelog
=====================================

Module for logging cache cleaning operations

1.0.0(8mo ago)171.5k↑44.2%2[1 issues](https://github.com/develodesign/magento2-module-cachelog/issues)OSL-3.0PHP

Since Oct 9Pushed 6mo agoCompare

[ Source](https://github.com/develodesign/magento2-module-cachelog)[ Packagist](https://packagist.org/packages/develodesign/magento2-module-cachelog)[ RSS](/packages/develodesign-magento2-module-cachelog/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (4)Used By (0)

Magento 2 Cache Log Module by Develodesign
==========================================

[](#magento-2-cache-log-module-by-develodesign)

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)](https://private-user-images.githubusercontent.com/55946/522880206-d16e0883-fd09-4db5-9cf0-a136d870edc0.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI2OTQ4MzUsIm5iZiI6MTc4MjY5NDUzNSwicGF0aCI6Ii81NTk0Ni81MjI4ODAyMDYtZDE2ZTA4ODMtZmQwOS00ZGI1LTljZjAtYTEzNmQ4NzBlZGMwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50a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N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.R-SPSn-tx5rLcIlgGXK87-cw9vkGN7bzV5rPq_9Ytl4)Features
--------

[](#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
------------

[](#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
-------------

[](#configuration)

1. Navigate to **Stores &gt; Configuration &gt; Develodesign &gt; 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
-----

[](#usage)

To view the cache cleaning logs, navigate to **System &gt; Tools &gt; Clean Cache Log** in the Magento admin panel.

License
-------

[](#license)

This module is licensed under the [Open Software License (OSL 3.0)](https://opensource.org/licenses/osl-3.0.php) and the [Academic Free License (AFL 3.0)](https://opensource.org/licenses/afl-3.0.php).

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance62

Regular maintenance activity

Popularity29

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

268d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e72f755b8cf02d9dfcd7eac011d1dd4d84c8e3de872641c795b88cc2b8eaba1?d=identicon)[develodesign](/maintainers/develodesign)

---

Top Contributors

[![collymore](https://avatars.githubusercontent.com/u/55946?v=4)](https://github.com/collymore "collymore (10 commits)")[![peterjaap](https://avatars.githubusercontent.com/u/431360?v=4)](https://github.com/peterjaap "peterjaap (2 commits)")

### Embed Badge

![Health badge](/badges/develodesign-magento2-module-cachelog/health.svg)

```
[![Health](https://phpackages.com/badges/develodesign-magento2-module-cachelog/health.svg)](https://phpackages.com/packages/develodesign-magento2-module-cachelog)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.5k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M277](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M343](/packages/open-telemetry-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
