clean post cache after update

This commit is contained in:
Mike Jolley 2016-05-17 14:46:08 +01:00
parent dad0b81276
commit 19a4648a5a
1 changed files with 2 additions and 0 deletions

View File

@ -483,6 +483,8 @@ class WC_Meta_Box_Order_Data {
$wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET post_date = %s, post_date_gmt = %s WHERE ID = %s", $date, get_gmt_from_date( $date ), $post_id ) );
clean_post_cache( $post_id );
// If customer changed, update any downloadable permissions
if ( $customer_changed ) {
$wpdb->update( $wpdb->prefix . "woocommerce_downloadable_product_permissions",