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(7mo ago)17698↓31.3%2[1 issues](https://github.com/develodesign/magento2-module-cachelog/issues)OSL-3.0PHP

Since Oct 9Pushed 5mo 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 1mo ago

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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQ3NjAxOTAsIm5iZiI6MTc3NDc1OTg5MCwicGF0aCI6Ii81NTk0Ni81MjI4ODAyMDYtZDE2ZTA4ODMtZmQwOS00ZGI1LTljZjAtYTEzNmQ4NzBlZGMwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZ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YLNrk8)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

38

—

LowBetter than 85% of packages

Maintenance68

Regular maintenance activity

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity37

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

221d 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.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[ekino/newrelic-bundle

Integrate New Relic into Symfony2

28111.2M8](/packages/ekino-newrelic-bundle)

PHPackages © 2026

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