mage2kishan / module-cachemanager
Smart cache invalidation on entity save and automated cache warmup with concurrent requests
Package info
github.com/mage2sk/module-cachemanager
Type:magento2-module
pkg:composer/mage2kishan/module-cachemanager
Requires
- php: >=8.1
- ext-curl: *
- mage2kishan/module-core: ^1.0
- magento/framework: ^103.0 || ^104.0
- magento/module-catalog: ^104.0 || ^105.0
- magento/module-cms: ^104.0 || ^105.0
- magento/module-store: ^101.0 || ^102.0
README
Magento 2 Cache Manager Extension: Smart Cache Invalidation and Automated Warmup (Hyva + Luma)
Keep your Magento 2 full-page cache hot without flushing everything. Panth Cache Manager invalidates only the cache tags that changed when a product, category, or CMS page is saved. It also runs a scheduled warmup crawler that re-primes important pages in parallel using PHP
curl_multi, and logs every request in an admin grid so you can see exactly what happened.
Product page: kishansavaliya.com/magento-2-cachemanager.html
Quick Answer
What is Panth Cache Manager? It is a Magento 2 extension that adds smart cache invalidation and automated cache warmup to your store. When you save a product, category, or CMS page, it clears only the affected cache tags instead of the whole FPC, and then a cron job re-crawls the important pages in parallel so real visitors always hit a warm cache.
What does it add to my store?
- Smart cache invalidation that clears only the relevant tags on product, category, or CMS save.
- Automated cache warmup via a cron job with configurable schedule and concurrency.
- A warmup log grid in the admin that shows every request, its HTTP status, and response time.
- A configurable TTL for full-page cached pages per store view.
Which themes are supported? Both Hyva and Luma. Cache Manager works at the cache layer, not the frontend, so it is theme-agnostic.
What does it need? Magento 2.4.6 to 2.4.8, PHP 8.1 to 8.4, the ext-curl PHP extension, and the free mage2kishan/module-core package.
Need Custom Magento 2 Development?
Get a free quote for your project in 24 hours for custom modules, Hyva themes, performance work, M1 to M2 migrations, and Adobe Commerce Cloud.
Visit our website: kishansavaliya.com | Get a quote: kishansavaliya.com/get-quote
Table of Contents
- Who Is It For
- Key Features
- Compatibility
- Installation
- Configuration
- How It Works
- Warmup Log
- FAQ
- Support
- About Panth Infotech
- Quick Links
Who Is It For
- Merchants with active catalogs who regularly update products, categories, and CMS pages and want those changes to go live without clearing the whole cache.
- Stores seeing TTFB spikes after content changes, where the default Magento cache flush is wiping too much and leaving visitors with cold pages.
- Hyva storefronts that need cache management that is completely frontend-agnostic and does not pull in any extra frontend dependencies.
- Site owners who want visibility into which pages were crawled, how fast they responded, and whether any warmup requests failed.
- High-traffic stores where keeping the FPC warm between content updates makes a measurable difference to page speed and Core Web Vitals.
Key Features
Smart Cache Invalidation
- Product save clears only the cache tags for that product, not the entire FPC.
- Category save clears the tags for that specific category.
- CMS page or block save clears only the affected CMS tags.
- Per-entity toggles let you enable or disable invalidation for each entity type independently.
Automated Cache Warmup
- Cron-driven warmup runs on a configurable schedule (default: every 6 hours).
- Concurrent requests using PHP
curl_multiso multiple pages are crawled in parallel. - Configurable concurrency lets you tune the parallel batch size to your server capacity.
- Selectable page types covers home page, category pages, product pages, and CMS pages.
- Store-aware URL collection respects Magento scope and base URL per store view.
Warmup Log Grid
- Full admin grid under Panth Extensions -> Cache Manager -> Warmup Log.
- HTTP status code per request (200, 404, 500, etc.) so failed pages are obvious.
- Response time in milliseconds to spot slow pages before customers do.
- Page type, URL, and timestamp columns with built-in filter and sort.
Configurable Full Page Cache TTL
- Custom TTL per store view, with a default of 86400 seconds (24 hours).
Quality
- MEQP-style code with constructor dependency injection only, no ObjectManager.
- Observer and plugin architecture with no core file edits.
- Full Page Cache friendly because warmup and invalidation work at the tag level.
- Translation ready: every label uses Magento's
__()function.
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 to 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 (free) |
| PHP Extension | ext-curl |
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
- Download the latest release from Packagist or from the product page.
- Extract it to
app/code/Panth/CacheManager/in your Magento install. - Make sure
Panth_Coreis installed too (required dependency). - Run the commands above starting from
bin/magento module:enable.
Verify Installation
bin/magento module:status Panth_CacheManager
# Expected: Module is enabled
After install, open:
Admin -> Stores -> Configuration -> Panth Extensions -> Cache Manager
Configuration
Go to Stores -> Configuration -> Panth Extensions -> Cache Manager.
| Setting | Group | Default | Description |
|---|---|---|---|
| Enable Cache Manager | General Settings | Yes | Master toggle. When set to No, neither invalidation nor warmup runs. |
| Cache TTL (seconds) | Full Page Cache | 86400 | Lifetime of cached pages in seconds. 86400 is 24 hours. |
| Enable Cache Warmup | Cache Warmup | Yes | Turn the automated warmup cron on or off. |
| Warmup Schedule (Cron) | Cache Warmup | 0 */6 * * * |
Cron expression for the warmup job. Default runs every 6 hours. |
| Pages to Warm Up | Cache Warmup | All | Multi-select: Home, Category, Product, CMS pages. |
| Concurrent Requests | Cache Warmup | 5 | Number of parallel curl_multi requests per warmup batch. |
| Enable Smart Invalidation | Cache Invalidation | Yes | Master toggle for selective cache tag clearing. |
| Invalidate on Product Save | Cache Invalidation | Yes | Clear product cache tags when a product is saved. |
| Invalidate on Category Save | Cache Invalidation | Yes | Clear category cache tags when a category is saved. |
| Invalidate on CMS Save | Cache Invalidation | Yes | Clear CMS tags when a CMS page or block is saved. |
How It Works
Smart Invalidation
- A merchant saves a product, category, or CMS page in the admin.
- A Magento observer catches the save event.
- Cache Manager calculates the cache tags that belong to that specific entity.
- Only those tags are cleaned from the full-page cache.
- All other cached pages stay hot for real visitors.
Automated Warmup
- The Magento cron triggers the warmup job on the configured schedule.
- Cache Manager collects URLs for the selected page types (home, categories, products, CMS) per store view.
- URLs are split into batches based on the configured concurrency setting.
curl_multisends each batch of requests in parallel.- Every response is written to the
panth_cache_warmup_logtable with HTTP status and response time. - The FPC is now primed, so the next real visitor hits a warm page.
Warmup Log
Open Admin -> Panth Extensions -> Cache Manager -> Warmup Log.
The grid shows:
| Column | Description |
|---|---|
| ID | Auto-increment log ID |
| URL | The page that was warmed |
| Page Type | home, category, product, or cms |
| HTTP Status | 200, 404, 500, etc. |
| Status | success, failed, pending, or skipped |
| Response Time (ms) | Request duration in milliseconds |
| Warmed At | Timestamp of when the request was made |
Use the built-in column filters and sorting to find slow pages, failed requests, or check how often your warmup is running.
FAQ
Does Cache Manager work with Varnish?
Yes. Smart invalidation cleans Magento cache tags. Varnish honors these through the standard Magento Varnish integration. Warmup sends regular HTTP GET requests that Varnish caches like any other visitor would prime.
Does it work with Hyva themes?
Yes. Cache Manager operates at the cache and observer layer, not the frontend, so it works with Hyva, Luma, or any other Magento 2 theme.
Will the warmup crawl show up in my analytics?
Warmup sends HTTP GET requests from the server itself. If you want to exclude these from analytics, filter by IP address or User-Agent in your analytics tool.
How much extra server load does the warmup add?
Very little. The default setting runs 5 concurrent requests every 6 hours. You can raise or lower the Concurrent Requests value to match your server capacity.
Does it flush the full cache?
No. That is the main point of smart invalidation. Only the cache tags for the specific entity you saved are cleared. Unrelated pages stay cached.
Can I warm custom page URLs?
The default warmup covers home, categories, products, and CMS. Custom URL providers can be added by extending the URL collector service through Magento DI.
Does this replace Magento's built-in Full Page Cache?
No. Cache Manager sits on top of Magento's FPC. It invalidates more precisely and keeps the cache warm, but it uses the same underlying Magento FPC mechanism.
Is the warmup log pruned automatically?
Not in the current version. The panth_cache_warmup_log table grows with every warmup cycle. For busy stores, truncate it periodically as needed.
Does it require Panth Core?
Yes. mage2kishan/module-core is a free required dependency. Composer installs it for you automatically when you require this module.
Is multi-store supported?
Yes. All settings respect Magento's scope hierarchy (default, website, store view), and the warmup collects URLs per store view based on its configured base URL.
Support
| Channel | Contact |
|---|---|
| Product Page | kishansavaliya.com/magento-2-cachemanager.html |
| kishansavaliyakb@gmail.com | |
| Website | kishansavaliya.com |
| +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 work, store migrations, or performance tuning? Get a free quote in 24 hours:
About Panth Infotech
Built and maintained by Kishan Savaliya (kishansavaliya.com), a Top Rated Plus Magento developer on Upwork with 10+ years of eCommerce experience.
Panth Infotech is a Magento 2 development agency that builds high quality, security focused extensions and themes for both Hyva and Luma storefronts. The extension suite covers SEO, performance, caching, checkout, product presentation, customer engagement, and store management, with each module built to MEQP standards and tested across Magento 2.4.6 to 2.4.8.
Browse the full extension catalog on our Magento extensions page or on Packagist.
Quick Links
| Resource | Link |
|---|---|
| Product Page | magento-2-cachemanager.html |
| Packagist | mage2kishan/module-cachemanager |
| GitHub | mage2sk/module-cachemanager |
| Website | kishansavaliya.com |
| Free Quote | kishansavaliya.com/get-quote |
| Upwork (Top Rated Plus) | Hire Kishan Savaliya |
| Upwork Agency | Panth Infotech |
| kishansavaliyakb@gmail.com | |
| +91 84012 70422 |
Ready to keep your Magento 2 store fast without flushing the whole cache?
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 cache TTL, magento 2 performance optimization, magento 2 core web vitals, magento 2 TTFB improvement, panth cache manager, panth infotech, mage2kishan, 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 developer, kishan savaliya magento, custom magento development, magento 2 hyva development, magento 2 luma cache, magento 2 varnish integration, magento 2 full page cache extension