mage2kishan/module-cachemanager

Smart cache invalidation on entity save and automated cache warmup with concurrent requests

Maintainers

Package info

github.com/mage2sk/module-cachemanager

Type:magento2-module

pkg:composer/mage2kishan/module-cachemanager

Statistics

Installs: 8

Dependents: 1

Suggesters: 0

Stars: 1

Open Issues: 0

1.0.1 2026-04-17 15:00 UTC

This package is auto-updated.

Last update: 2026-04-17 15:02:39 UTC


README

Panth Cache Manager for Magento 2 — Smart Cache Invalidation & Automated Warmup with Concurrent Requests

Magento 2.4.6 - 2.4.8 PHP 8.1 - 8.4 License Proprietary Packagist Upwork Top Rated Plus Panth Infotech Agency Website Get a Quote

Keep your Magento 2 full-page cache hot and your store fast — smart cache invalidation on product, category, and CMS save events, plus automated cron-driven warmup using concurrent curl_multi requests, with a full admin warmup log grid for visibility.

Panth Cache Manager is a production-grade cache optimization extension for Magento 2 and Hyva storefronts. Instead of flushing the entire full-page cache whenever a merchant edits a single product, Cache Manager invalidates only the tags that actually changed. On top of that, it runs a scheduled warmup crawler that re-primes the most important pages — home, categories, products, and CMS — in parallel batches, so real customers never hit a cold cache. Every warmup request is logged in an admin grid with HTTP status and response time, so you can see exactly what is happening.

Built to MEQP standards and compatible with Magento 2.4.6 — 2.4.8 on PHP 8.1 — 8.4, Cache Manager is part of the Panth Infotech extension suite and integrates cleanly with Hyva and Luma themes.

🚀 Need Custom Magento 2 Development?

Get a free quote for your project in 24 hours — custom modules, Hyva themes, performance optimization, M1→M2 migrations, and Adobe Commerce Cloud.

Get a Free Quote

🏆 Kishan Savaliya

Top Rated Plus on Upwork

Hire on Upwork

100% Job Success • 10+ Years Magento Experience Adobe Certified • Hyva Specialist

🏢 Panth Infotech Agency

Magento Development Team

Visit Agency

Custom Modules • Theme Design • Migrations Performance • SEO • Adobe Commerce Cloud

Visit our website: kishansavaliya.com  |  Get a quote: kishansavaliya.com/get-quote

Table of Contents

Why Panth Cache Manager

Default Magento 2 cache handling is aggressive: saving a single product can blow away large portions of the full-page cache, forcing the very next visitor to wait for a cold render. On larger catalogs this shows up as intermittent TTFB spikes and poor Core Web Vitals.

Panth Cache Manager fixes this in two ways:

  1. Smart invalidation — only the relevant cache tags are cleared on entity save, so unrelated pages stay hot.
  2. Automated warmup — a cron job re-crawls the important pages in parallel, so even when cache does expire, the first real customer hits a warm page.

The result is consistently fast page loads, better Core Web Vitals, and less server load.

Key Features

Smart Cache Invalidation

  • Product save — clears only the affected product's cache tags (not the entire FPC)
  • Category save — clears the specific category tags
  • CMS save — clears only the affected page/block tags
  • Per-entity toggles — enable or disable invalidation per entity type

Automated Cache Warmup

  • Cron-driven — runs on a configurable schedule (default every 6 hours)
  • Concurrent requests — uses PHP curl_multi to send N requests in parallel
  • Configurable concurrency — tune parallel batch size to your server capacity
  • Selectable page types — Home, Category pages, Product pages, CMS pages
  • Store-aware — respects Magento scope and base URL

Warmup Log Grid

  • Full admin grid — every warmup request recorded
  • HTTP status — 200, 404, 500, etc.
  • Response time (ms) — diagnose slow pages at a glance
  • Page type, URL, timestamp — filter, sort, and export

Configurable Full Page Cache TTL

  • Custom TTL per store view
  • Default: 86400 seconds (24 hours)

Quality & Compatibility

  • MEQP compliant — passes Adobe's Magento Extension Quality Program
  • Hyva and Luma compatible — works with any frontend theme
  • No core hacks — pure observer and plugin architecture
  • Composer-installable — no manual file copying

How It Works

Smart Invalidation Flow

Admin saves product/category/CMS
        ↓
Observer catches save event
        ↓
Cache Manager computes affected tags
        ↓
Only those tags are cleaned
        ↓
Unrelated pages remain cached

Warmup Flow

Cron triggers (default: every 6 hours)
        ↓
Collect URLs (home, categories, products, CMS)
        ↓
Split into batches of N (configurable concurrency)
        ↓
curl_multi sends batch in parallel
        ↓
Each response logged to panth_cache_warmup_log
        ↓
FPC is now primed for real visitors

Compatibility

Requirement Versions Supported
Magento Open Source 2.4.6, 2.4.7, 2.4.8
Adobe Commerce 2.4.6, 2.4.7, 2.4.8
Adobe Commerce Cloud 2.4.6 — 2.4.8
PHP 8.1.x, 8.2.x, 8.3.x, 8.4.x
MySQL 8.0+
MariaDB 10.4+
Hyva Theme 1.0+ (fully supported)
Luma Theme Native support
Required Dependency mage2kishan/module-core ^1.0
PHP Extension ext-curl

Tested on Magento 2.4.8-p4 (PHP 8.4), 2.4.7 (PHP 8.3), and 2.4.6 (PHP 8.2).

Installation

Composer Installation (Recommended)

composer require mage2kishan/module-cachemanager
bin/magento module:enable Panth_Core Panth_CacheManager
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush

Manual Installation via ZIP

  1. Download the release ZIP from Packagist or GitHub.
  2. Extract to app/code/Panth/CacheManager/.
  3. Ensure Panth_Core is also installed at app/code/Panth/Core/.
  4. Run the commands above from bin/magento module:enable onward.

Verify Installation

bin/magento module:status Panth_CacheManager
# Expected: Module is enabled

Then visit:

Admin → Stores → Configuration → Panth Extensions → Cache Manager

Configuration

All settings live at Stores → Configuration → Panth Extensions → Cache Manager.

General

Setting Default Description
Enable Cache Manager Yes Master toggle. When No, neither invalidation nor warmup runs.

Full Page Cache

Setting Default Description
Cache TTL (seconds) 86400 Lifetime of cached pages. 24 hours by default.

Cache Warmup

Setting Default Description
Enable Cache Warmup Yes Turn automatic warmup on/off.
Warmup Schedule 0 */6 * * * Cron expression — every 6 hours by default.
Pages to Warm Up All Multi-select: Home, Category, Product, CMS pages.
Concurrent Requests 5 Parallel curl_multi requests per batch.

Cache Invalidation

Setting Default Description
Enable Smart Invalidation Yes Master toggle for selective cache cleaning.
Invalidate on Product Save Yes Clean product cache tags on product save.
Invalidate on Category Save Yes Clean category cache tags on category save.
Invalidate on CMS Save Yes Clean CMS tags on page or block save.

Warmup Log

Navigate to Panth Extensions → Cache Manager → Warmup Log in the admin sidebar.

The grid shows:

Column Description
ID Auto-increment log ID
URL The page that was warmed
Page Type home, category, product, cms
HTTP Status 200, 404, 500, etc.
Status success or failed
Response Time (ms) Request duration
Warmed At Timestamp

Use built-in filters and sorting to find slow pages, failed requests, or audit warmup frequency.

Troubleshooting

Issue Cause Resolution
Warmup cron never runs Magento cron not configured Verify bin/magento cron:run is scheduled in system crontab
All warmup requests fail Server cannot reach its own URL Check firewall, SSL, and base URL reachability from the server
Smart invalidation has no effect Master or per-entity toggle off Set both Enable Smart Invalidation and the entity toggle to Yes
No URLs collected No page types selected Pick at least one page type in Pages to Warm Up
Warmup too slow Concurrency too low Raise Concurrent Requests (test gradually — 5, 10, 20)
Warmup overloads server Concurrency too high Lower Concurrent Requests and/or schedule off-peak

FAQ

Does Cache Manager work with Varnish?

Yes. Smart invalidation cleans Magento cache tags which Varnish honors via the standard Magento Varnish integration. Warmup simply issues HTTP GET requests, which Varnish caches like any other visitor.

Does it work with Hyva?

Yes. Cache Manager operates at the cache layer, not the frontend, so it is theme-agnostic. It fully supports Hyva and Luma.

Will warmup hit my analytics?

Warmup sends ordinary HTTP GET requests from the server. If you want to exclude warmup traffic, filter by User-Agent or IP in your analytics tool. You can customize the User-Agent via a plugin on the warmup service if needed.

How much server load does warmup add?

Warmup runs on cron, not on every request. Typical concurrency of 5 parallel requests every 6 hours is negligible. Tune Concurrent Requests for your infrastructure.

Does it flush the full cache?

No. That is the point. Cache Manager invalidates only the tags for the saved entity. Unrelated pages remain cached.

Can I warm custom URLs?

The default warmup covers home, categories, products, and CMS. Custom URL providers can be added via DI by extending the URL collector service.

Does this replace Magento's default FPC?

No. Cache Manager sits on top of Magento's Full Page Cache — it invalidates smarter and keeps it warm.

Is the warmup log pruned automatically?

The log grows with every warmup cycle. For large stores, consider adding a periodic cleanup cron (roadmap) or truncate panth_cache_warmup_log manually as needed.

Does it require Panth Core?

Yes. mage2kishan/module-core is a free, required dependency and is pulled in automatically by Composer.

Is multi-store supported?

Yes. All settings respect Magento's scope hierarchy (default → website → store view), and warmup collects URLs per store view.

Support

Channel Contact
Email kishansavaliyakb@gmail.com
Website kishansavaliya.com
WhatsApp +91 84012 70422
GitHub Issues github.com/mage2sk/module-cachemanager/issues
Upwork (Top Rated Plus) Hire Kishan Savaliya
Upwork Agency Panth Infotech

Response time: 1-2 business days.

💼 Need Custom Magento Development?

Looking for custom Magento module development, Hyva theme customization, store migrations, or performance optimization? Get a free quote in 24 hours:

Get a Free Quote

Hire on Upwork    Visit Agency    Visit Website

License

Proprietary — see LICENSE.txt. Copyright © Panth Infotech. All rights reserved.

About Panth Infotech

Built and maintained by Kishan Savaliyakishansavaliya.com — a Top Rated Plus Magento developer on Upwork with 10+ years of eCommerce experience.

Panth Infotech is a Magento 2 development agency specializing in high-quality, security-focused extensions and themes for both Hyva and Luma storefronts. Our extension suite covers SEO, performance, caching, checkout, product presentation, customer engagement, and store management — over 34 modules built to MEQP standards and tested across Magento 2.4.4 to 2.4.8.

Browse the full extension catalog on the Adobe Commerce Marketplace or Packagist.

Quick Links

Ready to speed up your Magento 2 store?
Get Started

SEO Keywords: magento 2 cache manager, magento 2 cache warmup, magento 2 smart cache invalidation, magento 2 full page cache, magento 2 FPC warmup, magento 2 curl_multi warmup, magento 2 concurrent cache warmup, magento 2 cron cache warmup, magento 2 warmup log, hyva cache warmup, magento 2 cache tags invalidation, magento 2 product save cache, magento 2 category save cache, magento 2 CMS save cache, magento 2 TTL configuration, magento 2 performance optimization, magento 2 core web vitals, magento 2 TTFB optimization, panth cache manager, panth infotech, mage2kishan, mage2sk, magento 2.4.8 cache module, magento 2.4.7 cache warmup, PHP 8.4 magento cache, hire magento developer upwork, top rated plus magento freelancer, kishan savaliya magento, custom magento development, magento 2 hyva development, magento 2 luma customization, magento 2 SEO services, M1 to M2 migration, adobe commerce cloud expert, magento 2 checkout optimization, magento 2 varnish integration