WordPress at a glance
function is not described

WC_REST_Products_V2_Controller::clear_transients() public WC 1.0

Clear caches here so in sync with any new variations/children.

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

No Hooks.

Return

Null. Nothing.

Usage

$WC_REST_Products_V2_Controller = new WC_REST_Products_V2_Controller();
$WC_REST_Products_V2_Controller->clear_transients( $object );
$object(WC_Data) (required)
Object data.

Code of WC_REST_Products_V2_Controller::clear_transients() WC 5.0.0

<?php
public function clear_transients( $object ) {
	wc_delete_product_transients( $object->get_id() );
	wp_cache_delete( 'product-' . $object->get_id(), 'products' );
}