Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

Products::delete_product_count_cache()public staticWC 1.0

Delete the product count transient used in has_products() method to refresh the cache.

Method of the class: Products{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = Products::delete_product_count_cache();

Products::delete_product_count_cache() code WC 9.7.1

public static function delete_product_count_cache() {
	delete_transient( self::PRODUCT_COUNT_TRANSIENT_NAME );
}