Skip to content

Adds page cache purging functionality to your SpinupWP WordPress site.

Notifications You must be signed in to change notification settings

robrecord/spinupwp-mu-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SpinupWP MU Plugin

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}' );

About

Adds page cache purging functionality to your SpinupWP WordPress site.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 96.9%
  • JavaScript 3.1%