WordPress at Your Fingertips
function is not described

WC_Widget::flush_widget_cache() public WC 1.0

Flush the cache.

{} It's a method of the class: WC_Widget{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Widget::flush_widget_cache() WC 5.5.2

<?php
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' );
	}
}