manifest / performance / wp-stash
WP Stash
Bridge between WordPress and StashPHP, providing a PSR6-compliant caching system for WordPress
by Moritz Meißelbach · github.com/inpsyde/wp-stash · website
★ 54stars
11forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/inpsyde/wp-stash/archive/refs/heads/main.zipFrom the readme
WP Stash
WP Stash is a bridge between StashPHP and WP's object caching drop-in support.
It enables APCu, Redis, SQLite, Memcached, and Filesystem caches, stampede protection, and group invalidation.
After installing, it will copy an object-cache.php file to wp-content/ which will delegate all cache calls to its mu-plugin folder. From there, it will interface with StashPHP.
Installation
This plugin is a Composer package that will be installed as a wordpress-muplugin. As such, there are a few things to note when attempting to install it.
Usually, MU-Plugins are single PHP files, sometimes accompanied by a subfolder containing more code. Since WP-Stash assumes it's living in a subfolder, it contains a lot of other dev-related stuff in its root folder.
For WP to pick up WP-Stash as an MU-Plugin, you have to do one of the following:
Composer
As a first step, simply require the package via composer
Since this package will get installed in a subfolder. WordPress will not automatically load it on its own. The following solutions exist:
WP Starter
If you are using the awesome WP Starter package, then everything will work automatically.
It contains an MU-Loader which will take
Read the full README on GitHub →