cache clearing

This commit is contained in:
Mike Jolley 2017-08-11 16:17:13 +01:00
parent def5e0cdee
commit 1545e46fd5
1 changed files with 1 additions and 0 deletions

View File

@ -144,5 +144,6 @@ abstract class Abstract_WC_Order_Item_Type_Data_Store extends WC_Data_Store_WP i
public function clear_cache( &$item ) {
wp_cache_delete( 'item-' . $item->get_id(), 'order-items' );
wp_cache_delete( 'order-items-' . $item->get_order_id(), 'orders' );
wp_cache_delete( $item->get_id(), $this->meta_type . '_meta' );
}
}