PHPackages                             cloudcommerce/cachewarmer - 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. cloudcommerce/cachewarmer

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

cloudcommerce/cachewarmer
=========================

Magento 2 cache warming module that preloads pages to improve performance

1.0.2(6mo ago)1082[1 issues](https://github.com/ybrajendra/magento-cache-warmer/issues)MITPHPPHP &gt;=8.0

Since Oct 14Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/ybrajendra/magento-cache-warmer)[ Packagist](https://packagist.org/packages/cloudcommerce/cachewarmer)[ RSS](/packages/cloudcommerce-cachewarmer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

CloudCommerce Cache Warmer - Magento 2 Page Cache Warming Extension
===================================================================

[](#cloudcommerce-cache-warmer---magento-2-page-cache-warming-extension)

A powerful Magento 2 module that automatically warms page cache by pre-loading URLs to improve site performance, reduce page load times, and enhance user experience. Supports both Magento's built-in Full Page Cache and Varnish cache. Boost your eCommerce store's speed with intelligent cache warming.

Features
--------

[](#features)

- **Smart Cache Detection** - Checks if pages are already cached before warming
- **Varnish Cache Support** - Compatible with Varnish cache servers
- **Multi-Store Support** - Supports multiple store views with separate URL collections
- **Flexible Scheduling** - Configurable cron times from admin panel
- **URL Collection Caching** - Caches collected URLs for improved performance
- **Comprehensive Logging** - Detailed logs for monitoring and debugging
- **CLI Commands** - Manual cache warming via command line
- **Admin Configuration** - Easy setup through Magento admin panel

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

[](#installation)

### Via Composer (Recommended)

[](#via-composer-recommended)

```
composer require cloudcommerce/cachewarmer
php bin/magento module:enable CloudCommerce_CacheWarmer
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush
```

### Manual Installation

[](#manual-installation)

1. Copy module files to `app/code/CloudCommerce/CacheWarmer/`
2. Run setup commands:

```
php bin/magento module:enable CloudCommerce_CacheWarmer
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush
```

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

[](#configuration)

Navigate to **Stores &gt; Configuration &gt; CloudCommerce &gt; Cache Warmer**

### General Settings

[](#general-settings)

- **Enable Cache Warmer** - Enable/disable the module
- **Cache Warmer Cron Time** - Schedule automatic cache warming:
    - 12:00 AM - 6:00 AM (hourly options)
    - Every Hour
    - Every 30 Minutes
    - Every 15 Minutes
    - Every 5 Minutes

### URL Configuration

[](#url-configuration)

- **Warm Category Pages** - Include category URLs
- **Warm Product Pages** - Include product URLs (limited to 5000 for performance)
- **Warm CMS Pages** - Include CMS page URLs
- **Custom URLs** - Add custom URLs (one per line)

CLI Commands
------------

[](#cli-commands)

### Warm All URLs

[](#warm-all-urls)

```
php bin/magento cloudcommerce:cache:warm
```

### Warm Specific Store

[](#warm-specific-store)

```
php bin/magento cloudcommerce:cache:warm --store-id=1
```

### Warm Single URL

[](#warm-single-url)

```
php bin/magento cloudcommerce:cache:warm --url="https://example.com/page.html"
```

### Check Cache Status

[](#check-cache-status)

```
php bin/magento cloudcommerce:cache:warm --check-cache
php bin/magento cloudcommerce:cache:warm --url="https://example.com/page.html" --check-cache
```

Cache Management
----------------

[](#cache-management)

The module creates a custom cache type **"CloudCommerce URL Collection"** that appears in: **System &gt; Cache Management**

This cache stores collected URLs and can be flushed independently from other cache types.

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

[](#how-it-works)

1. **URL Collection** - Gathers URLs from categories, products, CMS pages, and custom URLs
2. **Cache Check** - Uses Magento's cache identifier to check if pages are already cached
3. **Smart Warming** - Only makes HTTP requests to uncached pages
4. **Multi-Store** - Processes each store view separately with store-specific URLs
5. **Cron Automation** - Runs automatically based on configured schedule

Performance Features
--------------------

[](#performance-features)

- **Cache-First Approach** - Checks cache before making HTTP requests
- **URL Collection Caching** - Avoids repeated database queries
- **Store-Specific Processing** - Separate cache keys per store
- **Efficient File Checking** - Direct cache file existence checks
- **Smart Skipping** - Skips already cached pages

Logging
-------

[](#logging)

Logs are written to `var/log/cloudcommerce_cachewarmer.log` with detailed information:

- Cache warming results
- Cache status checks
- Error messages
- Performance metrics

Technical Details
-----------------

[](#technical-details)

- **Cache Key Generation** - Uses Magento's `IdentifierForSave` for accurate cache keys
- **File Cache Detection** - Checks `var/page_cache/mage--*/mage---{cacheKey}` files
- **Multi-Store Support** - Store-specific URL collection and base URLs
- **Error Handling** - Comprehensive exception handling and logging

Requirements
------------

[](#requirements)

- Magento 2.4+
- PHP 8.0+
- Full Page Cache or Varnish cache enabled

SEO Keywords
------------

[](#seo-keywords)

**Magento 2 Cache Warmer** | **Page Cache Warming** | **Magento Performance Optimization** | **Full Page Cache** | **Varnish Cache** | **Site Speed Optimization** | **Magento 2 Extension** | **Cache Management** | **Performance Module** | **Page Load Speed** | **Magento 2 Performance** | **Cache Preloading** | **Website Speed Boost** | **Magento Cache Extension** | **Performance Enhancement** | **Fast Loading Pages** | **Cache Optimization** | **Magento Speed Module** | **Page Cache Management** | **Performance Improvement** | **Cache Warming Tool**

Support
-------

[](#support)

For issues and feature requests, please check the module logs at `var/log/cloudcommerce_cachewarmer.log`

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance64

Regular maintenance activity

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

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

3

Last Release

205d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

performancecacheoptimizationmagento2warming

### Embed Badge

![Health badge](/badges/cloudcommerce-cachewarmer/health.svg)

```
[![Health](https://phpackages.com/badges/cloudcommerce-cachewarmer/health.svg)](https://phpackages.com/packages/cloudcommerce-cachewarmer)
```

###  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)[alekseykorzun/memcached-wrapper-php

Optimized PHP 5 wrapper for Memcached extension that supports dog-piling, igbinary and local storage

2984.6k1](/packages/alekseykorzun-memcached-wrapper-php)[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)
