WP Manifestindependent plugin directory
manifest / performance / redis-full-page-cache-purger

Redis Full Page Cache Purger

A WordPress plugin to purge keys from Redis when certain events happen. Pairs well with EasyEngine.

by Russell Heimlich, Chris Montgomery · github.com/spiritedmedia/redis-full-page-cache-purger · website

1stars
137composer installs
0forks

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/spiritedmedia/redis-full-page-cache-purger/archive/refs/heads/master.zip

Also on Packagist as spiritedmedia/redis-full-page-cache-purger:

composer require spiritedmedia/redis-full-page-cache-purger

From the readme

Redis Full Page Cache Purger Purges keys from Redis when certain WordPress events happen. Pairs well with EasyEngine. Based off of the nginx Helper plugin. There is no UI. Everything can be configured using constants, actions, and filters. Installation via Composer or manually download this plugin and place it in your /wp-content/plugins/ folder How does it work? When certain actions in WordPress happen (update post, edit term etc.) we determine URLs that need to be flushed and then tell Redis to delete the keys. URLs are transformed into a key that Redis uses to store the full page contents for caching purposes based off of the Open Resty SRCache nginx module. Redis purgers can hook into two actions which handle actually talking to Redis and deleting keys. Constants - REDISCACHEPURGEPLUGINDIRPATH - The main path of the plugin for including other files. Default: plugindirpath( FILE ) - REDISCACHEPURGEPREFIX - The prefix used for the cache key. Default: nginx-cache: - REDISCACHEPURGEHOST - Host or URL to connect to Redis. Default: 127.0.0.1 - REDISCACHEPURGEPORT - Port for connecting to Redis. Default: 6379 Actions - rediscachepurge/purgesinglekey - Hook for a purg

Read the full README on GitHub →