Download the PHP package leocolomb/wp-acorn-cache without Composer
On this page you can find all versions of the php package leocolomb/wp-acorn-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download leocolomb/wp-acorn-cache
More information about leocolomb/wp-acorn-cache
Files in leocolomb/wp-acorn-cache
Package wp-acorn-cache
Short Description A cache manager powered by Laravel through Acorn.
License ISC
Homepage https://github.com/LeoColomb/wp-acorn-cache
Informations about the package wp-acorn-cache
Acorn Cache for WordPress
[!Warning]
🚧 This project is still rather experimental.
Most probably not functional out of the box and definitely not ready for production.
About
This plugin provides cache handlers for WordPress, using Acorn framework based on Laravel fondation.
- Enables the two cache wrappers for WordPress using drop-ins.
- Object Cache (
object-cache.php
) - Advanced Page Cache (optional) (
advanced-cache.php
)
- Object Cache (
- Compatible with any driver supported by Laravel (including Redis, Memcached and Array).
- Adds handy WP-CLI commands.
- Targets modern software stacks.
Usage
-
Prepare your Composer file by adding custom paths.
Replace<wordpress-root/wp-content/>
with your WordPress content path,web/app/
with Bedrock.
See more info. -
Require the installer and allow its usage.
- Require the package in your Composer-managed WordPress instance.
Object Cache
The WordPress Object Cache is used to save on trips to the database. The Object Cache stores all of the cache data to memory and makes the cache contents available by using a key, which is used to name and later retrieve the cache contents.
Driver (recommended)
The cache driver must be setup as per Laravel documentation.
When using Bedrock as WordPress boilerplate, specify the driver
in your .env
file.
Configuration (optional)
Object cache behavior can be configured with its appropriate config file, config/object-cache.php
.
Start by publishing the configuration file using Acorn.
Page Cache
With Page Caching, you cache the full output of a page (i.e. the response) and bypass WordPress entirely on subsequent requests.
Note: The page cache is using Symfony HttpCache. While quite efficient, you should prefer using an appropriate page cache tool, like Varnish, Nginx cache or a CDN.
Activation (optional)
Page cache is not activated per default with WordPress.
To enable page cache, define the constant WP_CACHE
to true
.
Configuration (optional)
Page cache behavior can be configured with its appropriate config file, config/page-cache.php
.
Start by publishing the configuration file using Acorn.
License
ISC © Léo Colombaro
All versions of wp-acorn-cache with dependencies
composer/installers Version ^v1.0|^v2.0
koodimonni/composer-dropin-installer Version ^1.3