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.7.7(2w ago)734.4k3[1 PRs](https://github.com/MilliPress/MilliCache/pulls)1GPL-2.0-or-laterPHPPHP &gt;=7.4CI passing

Since Dec 8Pushed 1w ago1 watchersCompare

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

READMEChangelog (10)Dependencies (57)Versions (42)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)[![Discord](https://camo.githubusercontent.com/ff2de568b26d9e957b4d3d5cd68f275a0d089c3d8a02deeb08328f137255aaf3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446973636f72642d4a6f696e253230746865253230636f6d6d756e6974792d3538363546323f6c6f676f3d646973636f7264266c6f676f436f6c6f723d7768697465)](https://discord.gg/mx8HAXaKGY)[![GitHub Discussions](https://camo.githubusercontent.com/027ab788a67500f0c92e88c868e9e60dec4d801b0c2207b5caa0504f3c4fe71d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f64697363757373696f6e732f4d696c6c6950726573732f4d696c6c6943616368653f6c6f676f3d676974687562266c6162656c3d44697363757373696f6e73)](https://github.com/MilliPress/MilliCache/discussions)

**High-performance full-page caching for WordPress** using Redis, Valkey, or any compatible backend.

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, Dragonfly, or any Redis-compatible server

Learn more on [millipress.com](https://www.millipress.com/millicache), where you also find the [full documentation](https://www.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://www.millipress.com/docs/millicache):

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

[](#millicache-pro)

[MilliCache Pro](https://www.millipress.com/millicache-pro/) extends MilliCache with premium modules: a cache entries browser, a visual rules builder, block editor cache intelligence, cache preloading, detailed metrics, edge caching (bunny.net, Cloudflare), an asset CDN, and a persistent object cache. See the [Pro documentation](https://www.millipress.com/docs/millicache-pro/) for details.

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

[](#requirements)

- PHP 7.4+ (8.x recommended)
- WordPress 6.6+
- A Redis-compatible server: [Redis](https://redis.io/), [Valkey](https://valkey.io/), [Dragonfly](https://dragonflydb.io/), or any other RESP-compatible backend

Community
---------

[](#community)

The [Discord](https://discord.gg/mx8HAXaKGY) server and [GitHub Discussions](https://github.com/MilliPress/MilliCache/discussions) are places to swap setups, trade tips, and share your ideas for where MilliCache should head next. We're listening.

For bug reports, open a [GitHub issue](https://github.com/MilliPress/MilliCache/issues). [MilliCache Pro](https://www.millipress.com/millicache-pro) customers also get direct support by email and a private Discord channel.

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

53

—

FairBetter than 96% of packages

Maintenance97

Actively maintained with recent releases

Popularity37

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

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

32

Last Release

20d 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 (470 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] (26 commits)")[![millipress-bot[bot]](https://avatars.githubusercontent.com/in/3597116?v=4)](https://github.com/millipress-bot[bot] "millipress-bot[bot] (19 commits)")[![millipress-translations[bot]](https://avatars.githubusercontent.com/in/4363379?v=4)](https://github.com/millipress-translations[bot] "millipress-translations[bot] (9 commits)")[![weblate](https://avatars.githubusercontent.com/u/1607653?v=4)](https://github.com/weblate "weblate (4 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (2 commits)")[![rivanuff](https://avatars.githubusercontent.com/u/16398970?v=4)](https://github.com/rivanuff "rivanuff (1 commits)")[![vdrnn](https://avatars.githubusercontent.com/u/58754?v=4)](https://github.com/vdrnn "vdrnn (1 commits)")[![nlemoine](https://avatars.githubusercontent.com/u/2526939?v=4)](https://github.com/nlemoine "nlemoine (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

[bagisto/bagisto

Bagisto Laravel E-Commerce

28.0k175.2k9](/packages/bagisto-bagisto)[unopim/unopim

UnoPim Laravel PIM

10.8k2.5k](/packages/unopim-unopim)[symfony-bundles/redis-bundle

Symfony Redis Bundle

271.2M7](/packages/symfony-bundles-redis-bundle)[lion/bundle

Lion-framework configuration and initialization package

132.4k5](/packages/lion-bundle)

PHPackages © 2026

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