Automattic\WooCommerce\Caches

OrderCountCache::get_cache_keyprivateWC 1.0

Get the cache key for a given order type and status.

Method of the class: OrderCountCache{}

No Hooks.

Returns

String. The cache key.

Usage

// private - for code of main (parent) class only
$result = $this->get_cache_key( $order_type, $order_status );
$order_type(string) (required)
The type of order.
$order_status(string) (required)
The status of the order.

OrderCountCache::get_cache_key() code WC 10.8.1

private function get_cache_key( $order_type, $order_status ) {
	return $this->cache_prefix . '_' . $order_type . '_' . $order_status;
}