PHPackages                             mohsinraza2/magento-cache-warmer - 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. mohsinraza2/magento-cache-warmer

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

mohsinraza2/magento-cache-warmer
================================

Magento 2 CacheWarmer module that proactively warms product, category, and CMS pages to improve performance, page speed, and SEO rankings.

1.2.0(8mo ago)202MITPHPPHP ^8.1 || ^8.2

Since Aug 27Pushed 8mo ago2 watchersCompare

[ Source](https://github.com/mohsinraza2/Magento-Cache-Warmer)[ Packagist](https://packagist.org/packages/mohsinraza2/magento-cache-warmer)[ Docs](https://github.com/mohsinraza2/Magento-Cache-Warmer)[ RSS](/packages/mohsinraza2-magento-cache-warmer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Magento CacheWarmer
===================

[](#magento-cachewarmer)

Introduction
------------

[](#introduction)

Magento CacheWarmer is a utility built specifically for **Magento 2 stores** to improve storefront performance by preloading and refreshing cache entries before they are requested by visitors. This ensures reduced page load times, improved responsiveness, and a smoother shopping experience for customers. By optimizing **Magento performance**, **page speed**, and **user experience**, it also contributes to better **SEO rankings** and higher conversions.

Key Features
------------

[](#key-features)

- **Proactive Cache Warming**: Pre-generates cache for product, category, and CMS pages to avoid cold starts.
- **Magento-Specific Configuration**: Tailored settings to meet Magento’s caching and indexing requirements.
- **Lightweight Operation**: Designed to run efficiently without affecting server resources.
- **Scalable**: Suitable for Magento stores of any size, from small shops to enterprise deployments.
- **Extensible**: Provides integration points for custom logic, third-party modules, and advanced caching strategies.
- **SEO-Friendly**: Faster load times help reduce bounce rates, improve site speed scores, and support overall search engine optimization efforts.

Prerequisites
-------------

[](#prerequisites)

Before installation, ensure your environment meets the following requirements:

- **Magento Version**: Magento 2.4.7 or higher (recommended)
- **PHP Version**: PHP 8.2 or higher
- **Composer**: Installed and available globally
- **Database**: MySQL 10+ or MariaDB equivalent
- **Server**: Apache or Nginx configured for Magento 2
- **Access**: SSH access to the server for running CLI commands

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

[](#installation)

Clone the repository and install dependencies:

```
git clone
copy folder to app/code/
```

Module Installation
-------------------

[](#module-installation)

Enable the module in Magento by running the following commands:

```
php bin/magento module:enable Bizmia_CacheWarmer
php bin/magento setup:upgrade
php bin/magento cache:flush
```

To verify installation:

```
php bin/magento module:status Bizmia_CacheWarmer
```

This will ensure the CacheWarmer module is properly registered and active in your Magento installation.

Module Uninstallation / Disable
-------------------------------

[](#module-uninstallation--disable)

If you need to disable or uninstall the module, you can run:

```
php bin/magento module:disable Bizmia_CacheWarmer
php bin/magento setup:upgrade
php bin/magento cache:flush
```

To completely remove the module files:

```
composer remove Bizmia/module-cachewarmer
```

This will disable or fully remove the CacheWarmer module from your Magento installation.

Usage
-----

[](#usage)

Run CacheWarmer with:

```
php bin/magento cachewarmer:start
```

To stop the CacheWarmer process:

```
php bin/magento cachewarmer:stop
```

To view the status of CacheWarmer:

```
php bin/magento cachewarmer:status
```

How It Works
------------

[](#how-it-works)

CacheWarmer functions by:

1. Identifying target URLs such as product, category, and CMS pages.
2. Sending background requests to these URLs to generate and store cache entries.
3. Refreshing cache at defined intervals to ensure users always experience optimal load times.
4. Leveraging Magento’s built-in caching mechanisms to reduce server load and avoid redundant requests.

This proactive approach ensures that when customers visit your store, pages are already cached and load instantly, which improves **Core Web Vitals** and **SEO site speed scores**.

Performance
-----------

[](#performance)

- **Reduced Latency**: Eliminates cold starts by ensuring cache is always preloaded.
- **Improved Conversion Rates**: Faster load times improve user satisfaction and lower bounce rates.
- **Efficient Resource Usage**: Runs in the background without disrupting normal site operations.
- **Scalability**: Can handle high-traffic Magento stores by adjusting concurrency settings.
- **SEO Benefits**: Optimized site performance contributes to better rankings in Google and other search engines.

Logging
-------

[](#logging)

CacheWarmer provides detailed logging to monitor its activity:

- **Activity Logs**: Record URLs that were warmed, along with timestamps.
- **Error Logs**: Capture failed cache requests for troubleshooting.
- **Performance Metrics**: Report on execution time and cache hit/miss ratios.

Logs can be enabled or disabled via the `config.php` file or through the Magento Admin Panel. Admin users can also access logs for monitoring and auditing purposes.

Configuration
-------------

[](#configuration)

The `config.php` file allows customization of:

- **Target URLs**: Product, category, and CMS pages for cache warming.
- **Refresh Interval**: Frequency at which cache entries are refreshed.
- **Concurrency**: Control over the number of simultaneous requests.
- **Logging**: Options for monitoring and reporting.

Admin Configuration
-------------------

[](#admin-configuration)

CacheWarmer also provides an **Admin Panel Configuration** under: `Stores > Configuration > Advanced > System > CacheWarmer`

From here, administrators can:

- Enable or disable CacheWarmer globally.
- Configure cache warming schedules (cron-based or manual triggers).
- Define product, category, and CMS page types for cache warming.
- Adjust concurrency and request limits.
- Enable logging and view cache warming reports directly in the admin.

These settings allow store administrators to manage CacheWarmer without editing configuration files manually.

Troubleshooting
---------------

[](#troubleshooting)

Here are common issues and solutions:

- **Issue:** CacheWarmer does not start.

    - **Solution:** Ensure the module is enabled using `php bin/magento module:status Bizmia_CacheWarmer` and run `php bin/magento setup:upgrade`.
- **Issue:** Pages are not being cached.

    - **Solution:** Verify that the specified URLs are correct in the configuration file and that cache types are enabled (`php bin/magento cache:status`).
- **Issue:** High server load.

    - **Solution:** Reduce concurrency in the configuration file or adjust cron schedules.
- **Issue:** Logs not generated.

    - **Solution:** Ensure logging is enabled in `config.php` or in the Admin Configuration panel.
- **Issue:** Module not visible in Admin Panel.

    - **Solution:** Run `php bin/magento setup:di:compile` and clear cache with `php bin/magento cache:flush`.

Best Practices
--------------

[](#best-practices)

To maximize the effectiveness of Magento CacheWarmer:

- **Set Up Cron Jobs**: Automate cache warming by scheduling cron jobs at regular intervals.
- **Tune Concurrency**: Adjust the number of simultaneous requests based on your server’s capacity to avoid overload.
- **Prioritize Important Pages**: Focus on product, category, and landing pages that bring the most traffic and conversions.
- **Monitor Logs**: Regularly review activity and error logs to identify and resolve issues quickly.
- **Combine with SEO Strategy**: Use CacheWarmer alongside other SEO optimizations (metadata, sitemaps, structured data) to maximize rankings.
- **Test Performance**: Run Google PageSpeed Insights, GTmetrix, or Lighthouse to confirm improvements in speed and Core Web Vitals.
- **Stagger Cache Refresh**: For large stores, avoid refreshing all URLs at once to prevent spikes in server load.

Contributing
------------

[](#contributing)

Contributions are encouraged. To contribute:

1. Fork this repository.
2. Create a feature branch.
3. Submit a pull request with a clear description of your changes.

License
-------

[](#license)

This project is licensed under the MIT License. Refer to the LICENSE file for details.

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance60

Regular maintenance activity

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

255d ago

### Community

Maintainers

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

---

Top Contributors

[![mohsinraza2](https://avatars.githubusercontent.com/u/82963146?v=4)](https://github.com/mohsinraza2 "mohsinraza2 (6 commits)")

---

Tags

performancemagentocacheseopage-speedmagento2magento modulecachewarmer

### Embed Badge

![Health badge](/badges/mohsinraza2-magento-cache-warmer/health.svg)

```
[![Health](https://phpackages.com/badges/mohsinraza2-magento-cache-warmer/health.svg)](https://phpackages.com/packages/mohsinraza2-magento-cache-warmer)
```

###  Alternatives

[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.2M51](/packages/spatie-laravel-responsecache)[putyourlightson/craft-blitz

Intelligent static page caching for creating lightning-fast sites.

153471.5k29](/packages/putyourlightson-craft-blitz)[redchamps/module-easy-cache-clean

Clean invalidated cache(s) easily in a Magento 2 store

2838.0k](/packages/redchamps-module-easy-cache-clean)[anahkiasen/flatten

A package for the Illuminate framework that flattens pages to plain HTML

33313.0k](/packages/anahkiasen-flatten)[rarst/fragment-cache

WordPress plugin for partial and async caching of heavy front-end elements.

14115.0k2](/packages/rarst-fragment-cache)[silverstripe/staticpublishqueue

Static publishing queue to create static versions of pages for enhanced performance and security

45135.4k4](/packages/silverstripe-staticpublishqueue)

PHPackages © 2026

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