Automattic\WooCommerce\Blocks\Shipping
ShippingController::flush_cache
Everytime we save or update local pickup settings, we flush the shipping transient group.
Method of the class: ShippingController{}
No Hooks.
Returns
Array
. $settings The setting array we're saving.
Usage
$ShippingController = new ShippingController(); $ShippingController->flush_cache( $settings );
- $settings(array) (required)
- The setting array we're saving.
ShippingController::flush_cache() ShippingController::flush cache code WC 9.9.4
public function flush_cache( $settings ) { \WC_Cache_Helper::get_transient_version( 'shipping', true ); return $settings; }