Event hook rediscache_discard_metrics not removed after deactivation

[ad_1]

Hi,

We’ve noticed that your plugin doesn’t remove the rediscache_discard_metrics event hook when it’s deactivated.

Please can you add a deactivation function such as …

register_deactivation_hook( __FILE__, 'redis_deactivate' ); 

function redis_deactivate() {
    $timestamp = wp_next_scheduled( '<span style="font-family: inherit; font-size: 0.8rem;">rediscache_discard_metrics' );</span>
    wp_unschedule_event( $timestamp, '<span style="font-family: inherit; font-size: 0.8rem;">rediscache_discard_metrics' );</span>
}

Thank you.

Oliver

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer