• 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

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Event hook rediscache_discard_metrics not removed after deactivation’ is closed to new replies.