Hello,
Just add the pages in “Never Cache following pages” filed using the form mentioned above. It supports regex.
Hi,
I add the woocommerce page:
product
shop
cart
but the woocommerce PUT API doesn’t work.
Waiting for reply
Kind Regards
Hello,
Something is not configured properly. In order to assist you further, we need to investigate this. In this case, I can offer you our Professional support in Performance>Support.
Hi,
Could that be a common problem? We’re started having same problem. When the w3tc enabled all POST and PUT requests returning a 400 error. (You can find the response below.)
I suspect that this problem can be related with object cache. I managed to trace the problem down to wp-includes/media.php -> get_metadata() -> update_meta_cache()
Here are some further info:
– W3tc version: v0.9.7.4
– Never Cache following pages includes: /wc/v2/*
– REST API: Don’t cache
– No id’s for images in the request payload.
– Works with w3tc disabled.
– Example Response:
{
"data": {
"code": "woocommerce_product_invalid_image_id",
"message": "#883302 nije ispravan ID slike.",
"data": {
"status": 400
}
},
"headers": {
"Allow": "GET, POST"
},
"status": 400
}
Hi Again,
I managed to find out a solution. I added /wc/v2/* to “Never cache the following pages:” under “Database Cache” section. And it started to work again.
I still think that you should check it out regardless of this solution worked out for me.
Thanks.
Hello @fakelogo,
Thank you for the provided info. We’ll investigate this. Thank you for providing the solution.
Hi,
I’ve the problem with PUT RESTAPI if I enable the “page caching” in the general setting only.
If I disable it w3tc works correctly.
Waiting for reply
Kind Regards
Hi again,
I use V3 post and Put restapi.
Can I insert /wc/v3/* to “Never cache the following pages:” under “Database Cache” section?