PHPackages                             dakzilla/magento2-cachetags-helper - 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. [Caching](/categories/caching)
4. /
5. dakzilla/magento2-cachetags-helper

AbandonedArchivedMagento2-module[Caching](/categories/caching)

dakzilla/magento2-cachetags-helper
==================================

1.0.1(8y ago)228MITPHPPHP ~5.6.0|&gt;=7.0.0

Since Oct 2Pushed 8y agoCompare

[ Source](https://github.com/dakzilla/magento2-cachetags-helper)[ Packagist](https://packagist.org/packages/dakzilla/magento2-cachetags-helper)[ RSS](/packages/dakzilla-magento2-cachetags-helper/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

Magento 2 Cache Tags Helper
===========================

[](#magento-2-cache-tags-helper)

[![Build Status](https://camo.githubusercontent.com/f715eae28bcb37c296c6ef3cd558870bae8f44ca1fb83a476651711b50f223cc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64616b7a696c6c612f6d6167656e746f322d6361636865746167732d68656c7065722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dakzilla/magento2-cachetags-helper/build-status/master) [![Code Climate](https://camo.githubusercontent.com/ede7abbc1f163fa8cdd4c803bdb1e971babdd1de7e0a3c63417757160a6b0ec1/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f64616b7a696c6c612f6d6167656e746f322d6361636865746167732d68656c7065722f6261646765732f6770612e737667)](https://codeclimate.com/github/dakzilla/magento2-cachetags-helper) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/c84f46a6c4eba1ddf59ee0c45035fd164ee843e368c5b81436c0c6cae7bc4a0e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64616b7a696c6c612f6d6167656e746f322d6361636865746167732d68656c7065722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dakzilla/magento2-cachetags-helper/?branch=master)

Displays the cache tags from the current page in the console.

[![](https://camo.githubusercontent.com/954b96efd46d9aa608160b47f1a4e84ded338a41949392020156643bafb0b2a3/68747470733a2f2f692e696d6775722e636f6d2f315836347239432e706e67)](https://camo.githubusercontent.com/954b96efd46d9aa608160b47f1a4e84ded338a41949392020156643bafb0b2a3/68747470733a2f2f692e696d6775722e636f6d2f315836347239432e706e67)

Practical use
-------------

[](#practical-use)

Knowing which cache tags are used on a page allows you to selectively invalidate full page cache for certain tags only. This tool allows you to know which cache tags are used so that you can develop your own cache invalidation functionality. An example of that would be to create a cron job that invalidates the full page cache for the home page only:

```
class Cron {
     protected $_cache;

     public function __construct(
            \Magento\Framework\Cache\FrontendInterface $cache
        ) {
            $this->_cache = $cache;
        }

     public function execute() {
        $this->_cache->clean(\Zend_Cache::CLEANING_MODE_MATCHING_TAG, ['cms_page_2']); // default home page tag in 2.1.x
     }
}

```

Installation
------------

[](#installation)

`composer require dakzilla/magento2-cachetags-helper`

`php bin/magento setup:upgrade`

Usage
-----

[](#usage)

The module only works in developer mode with full page cache disabled. To disable only the full page cache, run this command:

`php bin/magento cache:disable full_page`

Upon reloading the page, you should see the cache tags appear in your developer console.

Compatibility
-------------

[](#compatibility)

This module has been tested with the 2.1 and 2.2 stable branches of Magento 2.

License
-------

[](#license)

This module is licensed under the MIT License

Copyright 2017 Simon Dakin

Made with ♥ in Montreal

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Every ~5 days

Total

2

Last Release

3139d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ee84afd975906b9f7d88ca15237e99e0b5b57a12b91b5ed6be9949b1c92c5cab?d=identicon)[snikad](/maintainers/snikad)

---

Top Contributors

[![dakzilla](https://avatars.githubusercontent.com/u/7482901?v=4)](https://github.com/dakzilla "dakzilla (5 commits)")

---

Tags

cachedeveloper-toolsmagento2magento2-module

### Embed Badge

![Health badge](/badges/dakzilla-magento2-cachetags-helper/health.svg)

```
[![Health](https://phpackages.com/badges/dakzilla-magento2-cachetags-helper/health.svg)](https://phpackages.com/packages/dakzilla-magento2-cachetags-helper)
```

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)

PHPackages © 2026

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