public function disable() {

        global $wp_filesystem;

        $plugin = $GLOBALS[ 'redisObjectCache' ];

        if ( ! $plugin->object_cache_dropin_exists() ) {

            WP_CLI::error( __( 'No object cache drop-in found.', 'redis-cache' ) );

        } else {

            if ( ! $plugin->validate_object_cache_dropin() ) {

                WP_CLI::error( __( 'An unknown object cache drop-in was found. To use Redis run: wp redis update-dropin.', 'redis-cache' ) );

            } else {

                WP_Filesystem();

                if ( $wp_filesystem->delete( WP_CONTENT_DIR . '/object-cache.php' ) ) {
                    WP_CLI::success( __( 'Object cache disabled.', 'redis-cache' ) );
                } else {
                    WP_CLI::error( __( 'Object cache could not be disabled.', 'redis-cache' ) );
                }

            }

        }

    }
public function disable() {

        global $wp_filesystem;

        $plugin = $GLOBALS[ 'redisObjectCache' ];

        if ( ! $plugin->object_cache_dropin_exists() ) {

            WP_CLI::error( __( 'No object cache drop-in found.', 'redis-cache' ) );

        } else {

            if ( ! $plugin->validate_object_cache_dropin() ) {

                WP_CLI::error( __( 'An unknown object cache drop-in was found. To use Redis run: wp redis update-dropin.', 'redis-cache' ) );

            } else {

                WP_Filesystem();

                if ( $wp_filesystem->delete( WP_CONTENT_DIR . '/object-cache.php' ) ) {
                    WP_CLI::success( __( 'Object cache disabled.', 'redis-cache' ) );
                } else {
                    WP_CLI::error( __( 'Object cache could not be disabled.', 'redis-cache' ) );
                }

            }

        }

    }
public function disable ( ) { global $ wp_filesystem ; $ plugin = $ GLOBALS [ 'redisObjectCache' ] ; if ( ! $ plugin -> object_cache_dropin_exists ( ) ) { WP_CLI :: error ( __ ( 'No object cache drop-in found.' , 'redis-cache' ) ) ; } else { if ( ! $ plugin -> validate_object_cache_dropin ( ) ) { WP_CLI :: error ( __ ( 'An unknown object cache drop-in was found. To use Redis run: wp redis update-dropin.' , 'redis-cache' ) ) ; } else { WP_Filesystem ( ) ; if ( $ wp_filesystem -> delete ( WP_CONTENT_DIR . '/object-cache.php' ) ) { WP_CLI :: success ( __ ( 'Object cache disabled.' , 'redis-cache' ) ) ; } else { WP_CLI :: error ( __ ( 'Object cache could not be disabled.' , 'redis-cache' ) ) ; } } } }
Disables the Redis object cache.

Default behavior is to delete the object cache drop-in,
unless an unknown object cache drop-in is present.

## EXAMPLES

wp redis disable
Disables the Redis object cache .