Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

Latest commit

 

History

History
32 lines (23 loc) · 1.22 KB

README.md

File metadata and controls

32 lines (23 loc) · 1.22 KB

This mu-plugin has been superseded by our new plugin which can be download at wordpress.org/plugins/spinupwp

SpinupWP MU Plugin (deprecated)

This must-use plugin adds page cache purging functionality to your WordPress site. In addition to automatically clearing the page cache for individual posts, pages, and other content when it is updated, this plugin allows you to purge the cache for the whole site as well. You will need to download this plugin and install it in the /wp-content/mu-plugins/ folder.

Install

You can install the mu-plugin with Composer:

composer require deliciousbrains/spinupwp-mu-plugin

Or manually by downloading the zip and then copying the contents of the src directory to /wp-content/mu-plugins, giving a directory structure like so:

├── wp-content
    ├── mu-plugins
        ├── spinupwp
        └── spinupwp.php
    ├── plugins
    └── themes

Finally add the following constants to your wp-config.php:

define( 'WP_CACHE_KEY_SALT', '{DOMAIN}' );
define( 'WP_REDIS_SELECTIVE_FLUSH', true );
define( 'SPINUPWP_CACHE_PATH', '/cache/{DOMAIN}' );