PHPackages                             millipress/millicache - 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. millipress/millicache

ActiveWordpress-plugin[Caching](/categories/caching)

millipress/millicache
=====================

WordPress Full-Page Cache based on Rules &amp; Flags. Delivers flexible, scalable caching workflows backed by Redis and ValKey in-memory stores.

v1.3.2(1mo ago)41418[1 PRs](https://github.com/MilliPress/MilliCache/pulls)1GPL-2.0-or-laterPHPPHP &gt;=7.4CI passing

Since Dec 8Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/MilliPress/MilliCache)[ Packagist](https://packagist.org/packages/millipress/millicache)[ RSS](/packages/millipress-millicache/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (27)Versions (14)Used By (1)

MilliCache
==========

[](#millicache)

[![CI](https://github.com/MilliPress/MilliCache/actions/workflows/ci.yml/badge.svg)](https://github.com/MilliPress/MilliCache/actions/workflows/ci.yml)[![e2e-Tests](https://github.com/MilliPress/MilliCache/actions/workflows/e2e.yml/badge.svg)](https://github.com/MilliPress/MilliCache/actions/workflows/e2e.yml)

**High-performance full-page caching for WordPress** using Redis, ValKey, KeyDB, or Dragonfly.

MilliCache stores complete HTML pages in memory and serves them in milliseconds — without loading WordPress. Combined with intelligent cache flags and flexible rules, it's designed for scaling sites that need both speed and control.

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

[](#key-features)

- **Lightning Fast** — In-memory caching with blazing fast response times
- **[Cache Flags](docs/03-cache-flags/01-introduction.md)** — Tag pages for precise, targeted cache invalidation
- **[Flexible Rules](docs/04-rules/01-introduction.md)** — Control caching behavior with condition-based rules
- **Multisite Native** — Per-site isolation, network-wide management
- **Built to Scale** — Multiple web servers can share a single Redis instance
- **WP-CLI Integration** — Full command-line cache management
- **[Multiple Backends](docs/08-storage-backends/01-overview.md)** — Redis, ValKey, KeyDB, or Dragonfly

Learn more on [millipress.com](https://millipress.com/millicache), where you also find the [full documentation](https://millipress.com/docs/millicache).

Quick Start
-----------

[](#quick-start)

1. **Install** via [ZIP download](https://github.com/millipress/millicache/releases/latest) or Composer:

    ```
    composer require millipress/millicache
    ```
2. **Activate** the plugin in WordPress admin
3. **Enable caching** in `wp-config.php`:

    ```
    define( 'WP_CACHE', true );

    // Optional: Configure Redis connection
    define( 'MC_STORAGE_HOST', '127.0.0.1' );
    define( 'MC_STORAGE_PORT', 6379 );
    ```
4. **Verify** in Settings UI, Browser Developer Tools, or with WP-CLI:

    ```
    wp millicache test
    wp millicache status
    ```

Documentation
-------------

[](#documentation)

Full documentation is available on [millipress.com/docs/millicache](https://millipress.com/docs/millicache):

SectionDescription[Getting Started](https://millipress.com/docs/millicache/01-getting-started/10-introduction/)Introduction and installation[Configuration](https://millipress.com/docs/millicache/02-configuration/01-overview/)Settings and constants reference[Cache Flags](https://millipress.com/docs/millicache/03-cache-flags/01-introduction/)Targeted cache invalidation[Rules](https://millipress.com/docs/millicache/04-rules/01-introduction/)Condition-based caching control[Usage](https://millipress.com/docs/millicache/05-usage/10-how-caching-works/)How caching works, clearing, multisite[WP-CLI](https://millipress.com/docs/millicache/06-wp-cli/01-commands/)Command-line reference[Developers](https://millipress.com/docs/millicache/07-developers/10-architecture/)Architecture, hooks, API[Storage Backends](https://millipress.com/docs/millicache/08-storage-backends/01-overview/)Redis, ValKey, KeyDB, Dragonfly[Troubleshooting](https://millipress.com/docs/millicache/09-troubleshooting/01-common-issues/)Common issues and FAQRequirements
------------

[](#requirements)

- PHP 7.4+ (8.x recommended)
- WordPress 6.6+
- Redis-compatible server ([ValKey](https://valkey.io/), [Redis](https://redis.io/), [KeyDB](https://keydb.dev/), or [Dragonfly](https://dragonflydb.io/))

Testing
-------

[](#testing)

MilliCache uses PHPUnit, PHPStan, and Playwright for testing. To run tests locally:

```
# Start test environment (requires Docker + Node.js)
npm install
npm run env:start

# Run e2e tests
npm run env:e2e

# Stop environment
npm run env:stop
```

Test WordPress available at `http://localhost:8888` (login: `admin` / `password`)

### Useful Commands

[](#useful-commands)

```
npm run env:cli wp millicache stats    # Run WP-CLI commands
npm run env:redis-cli                  # Open Redis CLI
npm run env:reset                      # Reset environment
```

Credits
-------

[](#credits)

MilliCache was initially inspired by:

- [Page Cache Red](https://github.com/pressjitsu/pj-page-cache-red) by Pressjitsu
- [Cachify](https://github.com/pluginkollektiv/cachify/) by PluginKollektive
- [Cache Enabler](https://github.com/keycdn/cache-enabler) by KeyCDN

License
-------

[](#license)

[GPLv2 or later](LICENSE.txt)

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance90

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

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

8

Last Release

48d ago

### Community

Maintainers

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

---

Top Contributors

[![ouun](https://avatars.githubusercontent.com/u/32090713?v=4)](https://github.com/ouun "ouun (172 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (30 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (10 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (2 commits)")[![vdrnn](https://avatars.githubusercontent.com/u/58754?v=4)](https://github.com/vdrnn "vdrnn (1 commits)")

---

Tags

cachekeydbredisvalkeywordpresswordpress-plugins

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/millipress-millicache/health.svg)

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

###  Alternatives

[pdffiller/qless-php

PHP Bindings for qless

29113.2k1](/packages/pdffiller-qless-php)[contributte/redis

Redis client integration into Nette framework

181.6M2](/packages/contributte-redis)

PHPackages © 2026

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