WordPress at a glance
function is not described

wc_clear_template_cache() WC 4.3.0

Clear the template cache.

No Hooks.

Return

null. Nothing.

Usage

wc_clear_template_cache();

Changelog

Since 4.3.0 Introduced.

Code of wc_clear_template_cache() WC 5.3.0

<?php
function wc_clear_template_cache() {
	$cached_templates = wp_cache_get( 'cached_templates', 'woocommerce' );
	if ( is_array( $cached_templates ) ) {
		foreach ( $cached_templates as $cache_key ) {
			wp_cache_delete( $cache_key, 'woocommerce' );
		}

		wp_cache_delete( 'cached_templates', 'woocommerce' );
	}
}