Automattic\WooCommerce\Internal\Admin

Analytics::run_clear_cache_tool()publicWC 1.0

"Clear" analytics cache by invalidating it.

Метод класса: Analytics{}

No Hooks.

Return

null. Nothing.

Usage

$Analytics = new Analytics();
$Analytics->run_clear_cache_tool();

Code of Analytics::run_clear_cache_tool() WC 7.1.0

public function run_clear_cache_tool() {
	Cache::invalidate();

	return __( 'Analytics cache cleared.', 'woocommerce' );
}