pantheon-systems / wp-redis

WordPress Object Cache using Redis.
https://wordpress.org/plugins/wp-redis/
GNU General Public License v2.0
226 stars 68 forks source link

[Feature Request] wp redis disable #309

Open michacassola opened 3 years ago

michacassola commented 3 years ago

I'd like to request a wp redis disable command for WP-CLI please, removing the symlink.

danielbachhuber commented 3 years ago

Sure! Want to put together a pull request for it?

I think it should:

  1. Bail early if if ( ! defined( 'WP_REDIS_OBJECT_CACHE' ) ) { because we should only modify the symlink if it's loading WP Redis.
  2. Show a success message if it's able to remove the symlink, and an error message if there's some failure.