From 1545e46fd535ad278d033aba9b724486568fab6c Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Fri, 11 Aug 2017 16:17:13 +0100 Subject: [PATCH] cache clearing --- includes/data-stores/abstract-wc-order-item-type-data-store.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/data-stores/abstract-wc-order-item-type-data-store.php b/includes/data-stores/abstract-wc-order-item-type-data-store.php index 9bbf98f4a6c..6ec980dfd08 100644 --- a/includes/data-stores/abstract-wc-order-item-type-data-store.php +++ b/includes/data-stores/abstract-wc-order-item-type-data-store.php @@ -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' ); } }