devgeniem/wp-disable-redis-object-cache-dropin

WordPress mu-plugin disabling Redis Object Cache for WordPress at various occasions.

Installs: 28 575

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:wordpress-muplugin

pkg:composer/devgeniem/wp-disable-redis-object-cache-dropin

1.0.0 2019-05-20 09:51 UTC

This package is auto-updated.

Last update: 2025-09-10 12:45:48 UTC


README

geniem-github-banner

Redis Object Cache for WordPress Disabling Handler

Latest Stable Version Total Downloads Latest Unstable Version License

This WordPress mu-plugin controls disabling the Redis Object Cache for WordPress dropin at various occasions.

The plugin currently supports disabling the Redis while previewing a WordPress article or page. If you want to extend the disabling functionality to other events, please write an issue about it or make a pull request.

Installation

$ composer require devgeniem/wp-disable-redis-object-cache-dropin

Disabling events

Preview

Read and write requests to the Redis cache should be prevented while a user is previewing an article or a page. This is done by disabling the Redis connection altogether by returning a false value with the object cache dropin's redis_object_cache_redis_status.

Note that the disabling starts after the global WP query is set thus enabling initial cache functions like options loading and updating.

License

GPLv3

Maintainers