Memcached object cache for WordPress.
Download a zip file from the releases page. and install it in your WordPress site.
Advanced: If you have
Nix
installed, you can build from source via
nix build github:staticweb-io/snapcache#plugin.
This will create a zip file at result/snapcache.zip
which you can then install in your WordPress site.
Please open an issue for new support questions.
A DeepWiki is available.
Development requires installing
Nix.
You can enter a development shell via nix develop ./dev,
or automatically using direnv.
After checking out this repository and making changes,
you can build the plugin with your changes by running
just build.
This will create a zip file at result/snapcache.zip.
There is a slightly different build for the WordPress.org repo.
This has a few differences like getting updates from WordPress.org instead of from GitHub.
You can build it with just build-wp-org.
If you make changes to composer.json, or composer.lock,
you will need to update the vendorHashes in flake.nix
by running
just update-hashes.
You can run the development environment via
just dev.
This starts MySQL, PHP-FPM, and Nginx running WordPress
with this plugin installed.
The WordPress site is available at
http://localhost:8889
with credentials "user" and "pass".
The release dir contains the constants.php files that are used for each build.
Rector rewrites the code for each build based on the defined constants.
To run the tests, run just test from
within this repository.
Test results are available on the actions page.