millipress / acorn-millicache
Stores Acorn route responses in MilliCache's Redis cache
Installs: 3
Dependents: 0
Suggesters: 1
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/millipress/acorn-millicache
Requires
- php: >=8.1
- millipress/millicache: ^1.0.0
- roots/acorn: ^4.0 || ^5.0
Requires (Dev)
- laravel/pint: ^1.0
- orchestra/testbench: ^10.9
- pestphp/pest: ^4.0
- phpstan/phpstan: ^2.0
Suggests
- millipress/acorn-millirules: Add route-aware rules, conditions & actions for Acorn routes and cache them
This package is auto-updated.
Last update: 2026-02-13 22:23:25 UTC
README
MilliCache integration for Acorn — a Laravel middleware that stores Acorn route responses in MilliCache's Redis/Valkey full-page cache for WordPress sites powered by the Roots.io Stack.
Requirements
| Requirement | Version |
|---|---|
| PHP | >= 8.1 |
| Roots Acorn | ^4.0 | ^5.0 |
| MilliCache | ^1.2.2 (auto-installed) |
Quick Start
composer require millipress/acorn-millicache
Optionally publish the config:
wp acorn vendor:publish --tag=millicache
The middleware is registered automatically via Acorn's package discovery. On a cache MISS it captures the Acorn route response and stores it in Redis; on the next request advanced-cache.php serves it directly — no WordPress, no Acorn, no controller.
Documentation
Full documentation is available at millipress.com/docs/acorn-millicache or in the docs/ directory:
Better Together: Acorn MilliRules
Acorn MilliCache stores your responses — Acorn MilliRules gives you full control over what happens to them. Add route-aware conditions, HTTP response actions, redirects, header manipulation, and custom cache flags — all from expressive rule classes that are auto-discovered by Acorn.
composer require millipress/acorn-millirules
Scaffold a rule in seconds:
wp acorn rules:make:rule RedirectLegacyPages
Caching is just the beginning. See the Acorn MilliRules documentation to explore what's possible.
Related
- MilliCache — the Redis/Valkey full-page cache engine for WordPress
- Acorn MilliRules — route-aware rules, conditions, and actions for Acorn
- millipress.com — MilliPress documentation and resources
License
GPL-2.0-or-later