Title: W3 Total CACHE restapi problem
Last modified: May 17, 2019

---

# W3 Total CACHE restapi problem

 *  Resolved [fedan80](https://wordpress.org/support/users/fedan80/)
 * (@fedan80)
 * [7 years ago](https://wordpress.org/support/topic/w3-total-cache-restapi-problem/)
 * 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)

[←](https://wordpress.org/support/topic/w3-total-cache-restapi-problem/?output_format=md)
[1](https://wordpress.org/support/topic/w3-total-cache-restapi-problem/?output_format=md)
2

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/w3-total-cache-restapi-problem/page/2/#post-11567521)
 * Hello,
 * Just add the pages in “Never Cache following pages” filed using the form mentioned
   above. It supports regex.
 *  Thread Starter [fedan80](https://wordpress.org/support/users/fedan80/)
 * (@fedan80)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/w3-total-cache-restapi-problem/page/2/#post-11567527)
 * 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](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/w3-total-cache-restapi-problem/page/2/#post-11568475)
 * 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.
 *  [fakelogo](https://wordpress.org/support/users/fakelogo/)
 * (@fakelogo)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/w3-total-cache-restapi-problem/page/2/#post-11572472)
 * 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
       }
       ```
   
 *  [fakelogo](https://wordpress.org/support/users/fakelogo/)
 * (@fakelogo)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/w3-total-cache-restapi-problem/page/2/#post-11572498)
 * 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](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/w3-total-cache-restapi-problem/page/2/#post-11575202)
 * Hello [@fakelogo](https://wordpress.org/support/users/fakelogo/),
 * Thank you for the provided info. We’ll investigate this. Thank you for providing
   the solution.
 *  Thread Starter [fedan80](https://wordpress.org/support/users/fedan80/)
 * (@fedan80)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/w3-total-cache-restapi-problem/page/2/#post-11575399)
 * 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](https://wordpress.org/support/users/fedan80/)
 * (@fedan80)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/w3-total-cache-restapi-problem/page/2/#post-11575573)
 * 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)

[←](https://wordpress.org/support/topic/w3-total-cache-restapi-problem/?output_format=md)
[1](https://wordpress.org/support/topic/w3-total-cache-restapi-problem/?output_format=md)
2

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

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 23 replies
 * 3 participants
 * Last reply from: [fedan80](https://wordpress.org/support/users/fedan80/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/w3-total-cache-restapi-problem/page/2/#post-11575573)
 * Status: resolved