WC_Cache_Helper::invalidate_cache_group()public staticWC 3.9.0

Invalidate cache group.

Method of the class: WC_Cache_Helper{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Cache_Helper::invalidate_cache_group( $group );
$group(string) (required)
Group of cache to clear.

Changelog

Since 3.9.0 Introduced.

WC_Cache_Helper::invalidate_cache_group() code WC 7.3.0

public static function invalidate_cache_group( $group ) {
	wp_cache_set( 'wc_' . $group . '_cache_prefix', microtime(), $group );
}