/** * Clear the cache when the Cherry Mega Menu is updated. * * @since 1.0.0 */ public function clear_caches() { // https://wordpress.org/plugins/widget-output-cache/ if (function_exists('menu_output_cache_bump')) { menu_output_cache_bump(); } // https://wordpress.org/plugins/widget-output-cache/ if (function_exists('widget_output_cache_bump')) { widget_output_cache_bump(); } // https://wordpress.org/plugins/wp-super-cache/ if (function_exists('wp_cache_clear_cache')) { global $wpdb; wp_cache_clear_cache($wpdb->blogid); } }
/** * Clear the cache when the Mega Menu is updated. * * @since 1.0 */ public function clear_caches() { // https://wordpress.org/plugins/widget-output-cache/ if (function_exists('menu_output_cache_bump')) { menu_output_cache_bump(); } // https://wordpress.org/plugins/widget-output-cache/ if (function_exists('widget_output_cache_bump')) { widget_output_cache_bump(); } }