public static function schedule() { $options = red_get_options(); if ($options['expire_redirect'] > 0 || $options['expire_404'] > 0) { if (!wp_next_scheduled(self::DELETE_HOOK)) { wp_schedule_event(time(), self::DELETE_FREQ, self::DELETE_HOOK); } } else { Red_Flusher::clear(); } }
public static function plugin_deactivated() { Red_Flusher::clear(); }