WordPress Full-Page Cache ­with­ Surgical Control

In-memory caching powered by Redis or ValKey. Built for scaling WordPress sites and networks, driven by Rules and Flags.

MilliCache
Full-Page Cache
Served by
~ ms
0ms Response Time (TTFB) 2s

Get MilliCache

Free and open source. Install via Composer, WP-CLI, or download the ZIP directly.

Direct Download

Download the latest release as a ZIP file.

WP-CLI

Install and activate with a single command.

Composer

Install as a Composer dependency.

Using Bedrock or Radicle? There's an Acorn package for deeper integration.

Flag-Based Cache Management

Tag cached pages with flags, then clear related entries with a single command. No more all-or-nothing cache purges.

Custom Flags

Built-in flags work automatically. Create custom flags when you need control over specific relationships.

Learn more

Wildcard Patterns

Target groups of content with patterns like post:*. Clear hundreds of entries with one command.

Learn more

Multisite & Networks

Each site gets isolated flags. Clear one site, a subset, or an entire network — with full control.

Learn more

Rules Automate Your Cache Strategy

A fluent API to configure what gets cached, how long it lives, and exactly when to clear it. Hook into any event, use any condition, trigger any action.

If This, Then Cache

Like smart home automation for your cache. Define the rules, and let them handle the rest — automatically.

Learn more

Surgical Precision

Highest flexibility with Rules & Flags. Define exactly what gets cached, for how long, and what triggers a purge.

Learn more

Extensible by Design

Built-in support for any WordPress hook, is_*() and has_*() conditionals. Need custom logic? Easy!

Learn more

Built for Scale

From single server to global edge caching. ­MilliCache grows with your requirements and infrastructure.

Single Server

One WordPress instance with Redis or Valkey. The simplest setup that delivers dramatic speed improvements.

  • Millisecond responses

    Cached pages served from memory, bypassing WordPress

  • Better Core Web Vitals

    Faster TTFB improves SEO rankings and user experience

  • Stale-while-revalidate

    Visitors never wait — serve stale, regenerate in background

Faster responses and more concurrent requests from one server.

Horizontal Scaling

Multiple web servers can share the same cache.
Add servers without cache fragmentation.

  • Shared cache state across servers

    All servers access the same cache—no duplication

  • Multisite & multi-network support

    Scale WordPress networks across server farms

  • Load balancer ready

    Works seamlessly with any load balancing solution

Perfect for high-traffic sites and enterprise deployments.

Edge Caching

CDN integration for global edge caching. MilliCache manages origin cache while your CDN serves at the edge. Instant purge propagation.

  • Global performance

    Serve pages from edge locations closest to your users

  • Scale with ease

    Global scalability while keeping infrastructure simple

  • Automatic edge management

    MilliCache invalidation propagates to all CDN edge nodes

Global scalability without infrastructure complexity.

User 1
User 2
User 3
App Server
WordPress
stand-by serving regenerate
Redis/Valkey
inactive connecting stand-by serving stale storing
Without cache → With MilliCache No Cache — Every request hits WordPress & Database Cache MISS — First request stores result in Redis Cache HIT — Multiple users served instantly from Redis Cache STALE — Serve fast, regenerate in background
No Cache
Cache HIT
Load Balancer
routing
App Server 1
MilliCache
App Server 2
MilliCache
+n
Server n...
add more
Cache Server
Redis / Valkey
🇺🇸 User
🇪🇺 User
🇯🇵 User
CDN Edge Network
🇺🇸
US East POP
~15ms
🇪🇺
Europe POP
~12ms
🇯🇵
Asia POP
~18ms
Edge-Cached:
Full HTML pages
Images & media
CSS & JavaScript
API responses
Origin
MilliCache
Fast edge responses
Rare origin fetch

Developer Experience

WP-CLI commands, extensive hooks, and debug tools. Everything you need for precise cache control.

Stale-While-Revalidate

 1// Stale-While-Revalidate: Serve expired content
 2// while regenerating fresh content in the background.
 3// Prevents cache stampedes on high-traffic pages.
 4
 5Rules::create('high-traffic-pages')
 6    ->when_any()
 7        ->is_front_page()
 8        ->is_post_type_archive('product')
 9    ->then()
10        // Cache for 5 minutes
11        ->set_ttl(MINUTE_IN_SECONDS * 5)
12        // But allow stale content for up to 1 hour
13        // while fresh content regenerates
14        ->set_grace(HOUR_IN_SECONDS)
15    ->register();

Full WP-CLI Control

$
$
AI-friendly — Claude, Copilot & Cursor can run these

Debug Headers

X-MilliCache-* headers show cache status, flags, and keys. Our browser extension makes debugging a breeze.

REST API

/millicache/v1/* endpoints for cache control, status checks, and settings — ideal for CI/CD and monitoring.

Extensive Hooks

millicache_flags_for_request, millicache_cache_cleared and 25+ other hooks for complete customization.

Flexible Config

PHP constants, config files, Settings UI, or WP-CLI. All write to version-controllable files.

Smart Invalidation

Cache clears automatically when posts, menus, or theme settings change. No manual purging needed.

Open Source

GPL-2.0+ licensed. Audit the code, contribute, or fork. No vendor lock-in.

Coming Soon

MilliCache Pro

Enterprise-grade caching for devs, agencies and high-traffic sites. Built for those who need more or want to support the project.

Early subscribers get exclusive launch pricing. No spam — only product updates and release announcements.

Why Redis?

File-based caching works — until you need more.

One Cache, All Servers

Load-balanced? Every server shares the same cache. No cold starts, no duplicated work.

Smart Invalidation

Redis Sets let you tag cache entries. Update a product? Clear only pages showing that product.

Built for Scale

Redis Cluster, Sentinel, persistence. Enterprise-grade infrastructure you already know.

"We run 7 sites on a single origin server — WordPress, MySQL, Redis, all on one machine. We backed MilliCache Pro early to get edge integration, and went from 1s+ to 50ms response times worldwide. Traffic spikes from any region just hit the CDN."
new7wonders.com • WordPress Multisite

Common Questions

How is this different from object caching in WordPress?

WordPress supports object caching to store database query results in memory, reducing repeated database calls. However, MilliCache is a full-page cache — it stores the complete rendered HTML output. While object caching speeds up dynamic page generation, full-page caching skips WordPress execution entirely by serving pre-built pages. They're complementary: use object caching for dynamic content, MilliCache for static page delivery.

Do I need Redis? Does it work with my hosting?

Yes, MilliCache requires Redis, ValKey, KeyDB, or Dragonfly — file-based caching doesn't support the shared cache needed for horizontal scaling or the atomic operations for flag-based clearing. Most managed WordPress hosts like WP Engine, Kinsta, Cloudways, and GridPane include Redis. Self-hosted? DigitalOcean, AWS, or any VPS where you control Redis configuration works perfectly.

Will this plugin spam my dashboard with notifications?

No. MilliCache does one thing: full-page caching. No upsell notifications, no dashboard banners, no cross-selling other plugins. Just clean, focused cache control with WP-CLI tools for automation.