• Resolved fedan80

    (@fedan80)


    Hi,
    When I active the plugin, it’s not possibile to update the products with woocommerce API.
    Also other API function doesn’t work.
    The plugin delete the Header data.
    could it be Object Cache? The Object Cache Method is MEMCACHED
    Can I solve this conflict?
    Waiting for reply
    Regards

Viewing 8 replies - 16 through 23 (of 23 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,

    Just add the pages in “Never Cache following pages” filed using the form mentioned above. It supports regex.

    Thread Starter fedan80

    (@fedan80)

    Hi,

    I add the woocommerce page:

    product
    shop
    cart

    but the woocommerce PUT API doesn’t work.

    Waiting for reply

    Kind Regards

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    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.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @fakelogo,

    Thank you for the provided info. We’ll investigate this. Thank you for providing the solution.

    Thread Starter fedan80

    (@fedan80)

    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

    Thread Starter fedan80

    (@fedan80)

    Hi again,

    I use V3 post and Put restapi.

    Can I insert /wc/v3/* to “Never cache the following pages:” under “Database Cache” section?

Viewing 8 replies - 16 through 23 (of 23 total)

The topic ‘W3 Total CACHE restapi problem’ is closed to new replies.