WC_Widget::flush_widget_cache()publicWC 1.0

Flush the cache.

Method of the class: WC_Widget{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Widget = new WC_Widget();
$WC_Widget->flush_widget_cache();

WC_Widget::flush_widget_cache() code WC 8.7.0

public function flush_widget_cache() {
	foreach ( array( 'https', 'http' ) as $scheme ) {
		wp_cache_delete( $this->get_widget_id_for_cache( $this->widget_id, $scheme ), 'widget' );
	}
}