@@ -907,7 +907,7 @@ public static function delete_tax_class_by( $field, $item ) {
907
907
}
908
908
909
909
wp_cache_delete ( 'tax-rate-classes ' , 'taxes ' );
910
- WC_Cache_Helper::incr_cache_prefix ( 'taxes ' );
910
+ WC_Cache_Helper::invalidate_cache_group ( 'taxes ' );
911
911
912
912
return (bool ) $ delete ;
913
913
}
@@ -1025,7 +1025,7 @@ public static function _insert_tax_rate( $tax_rate ) {
1025
1025
1026
1026
$ tax_rate_id = $ wpdb ->insert_id ;
1027
1027
1028
- WC_Cache_Helper::incr_cache_prefix ( 'taxes ' );
1028
+ WC_Cache_Helper::invalidate_cache_group ( 'taxes ' );
1029
1029
1030
1030
do_action ( 'woocommerce_tax_rate_added ' , $ tax_rate_id , $ tax_rate );
1031
1031
@@ -1082,7 +1082,7 @@ public static function _update_tax_rate( $tax_rate_id, $tax_rate ) {
1082
1082
)
1083
1083
);
1084
1084
1085
- WC_Cache_Helper::incr_cache_prefix ( 'taxes ' );
1085
+ WC_Cache_Helper::invalidate_cache_group ( 'taxes ' );
1086
1086
1087
1087
do_action ( 'woocommerce_tax_rate_updated ' , $ tax_rate_id , $ tax_rate );
1088
1088
}
@@ -1101,7 +1101,7 @@ public static function _delete_tax_rate( $tax_rate_id ) {
1101
1101
$ wpdb ->query ( $ wpdb ->prepare ( "DELETE FROM {$ wpdb ->prefix }woocommerce_tax_rate_locations WHERE tax_rate_id = %d; " , $ tax_rate_id ) );
1102
1102
$ wpdb ->query ( $ wpdb ->prepare ( "DELETE FROM {$ wpdb ->prefix }woocommerce_tax_rates WHERE tax_rate_id = %d; " , $ tax_rate_id ) );
1103
1103
1104
- WC_Cache_Helper::incr_cache_prefix ( 'taxes ' );
1104
+ WC_Cache_Helper::invalidate_cache_group ( 'taxes ' );
1105
1105
1106
1106
do_action ( 'woocommerce_tax_rate_deleted ' , $ tax_rate_id );
1107
1107
}
@@ -1176,7 +1176,7 @@ private static function update_tax_rate_locations( $tax_rate_id, $values, $type
1176
1176
$ wpdb ->query ( "INSERT INTO {$ wpdb ->prefix }woocommerce_tax_rate_locations ( location_code, tax_rate_id, location_type ) VALUES $ sql; " ); // @codingStandardsIgnoreLine.
1177
1177
}
1178
1178
1179
- WC_Cache_Helper::incr_cache_prefix ( 'taxes ' );
1179
+ WC_Cache_Helper::invalidate_cache_group ( 'taxes ' );
1180
1180
}
1181
1181
1182
1182
/**
0 commit comments