Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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
    }
Viewing 2 replies - 1 through 2 (of 2 total)