Hi @vmarko
They log into their ERP, they update the price. The ERP triggers an update using the REST API as documented here: https://woocommerce.github.io/woocommerce-rest-api-docs/#update-a-product and here https://woocommerce.github.io/woocommerce-rest-api-docs/#batch-update-products
The response indicates that the price for product with id 794 has been successfully updated.
I view the product using the URL in the json response $response->permalink
but the price on the web store is still showing the old value.
When I log into WordPress, an view the product, the price is correct BUT W3TC is still caching the page with the old price. I need to manually purge the cache to update the pricing for the public.
What I want: When the update is triggered via $woocommerce->put('products/794', $data)
I want to automatically clear the cache for woocommerce product with post_ID = 794 or, if a batch update is performed $woocommerce->post('products/batch', $data)
clear the cache of all products in the “update
” array
-
This reply was modified 6 months, 2 weeks ago by SJW.
-
This reply was modified 6 months, 2 weeks ago by SJW. Reason: Added batch process
-
This reply was modified 6 months, 2 weeks ago by SJW.