HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //proc/self/root/proc/thread-self/cwd/wp-content/woocommerce/includes/cli/class-wc-cli-tool.php
<?php

/**
 * Tools for WooCommerce.
 *
 * @since    2.5.0
 * @package  WooCommerce/CLI
 * @category CLI
 * @author   WooThemes
 */
class WC_CLI_Tool extends WC_CLI_Command {

	/**
	 * Clear the product/shop transients cache.
	 *
	 * ## EXAMPLES
	 *
	 *     wp wc tool clear_transients
	 *
	 * @since 2.5.0
	 */
	public function clear_transients( $args, $assoc_args ) {
		wc_delete_product_transients();
		wc_delete_shop_order_transients();
		WC_Cache_Helper::get_transient_version( 'shipping', true );

		WP_CLI::success( 'Product transients and shop order transients were cleared.' );
	}
}