WC_Widget::flush_widget_cache()
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() WC Widget::flush widget cache code WC 9.8.2
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' ); } }