Viewing 5 replies - 1 through 5 (of 5 total)
  • Ashok

    (@bappidgreat)

    I am not sure if W3TC can cache Woo REST API result, normally W3TC doesn’t cache url of query params where in most GET request contains query params.

    I have found a snippet that’s related to REST API but you may try to tweak a bit: https://github.com/Shelob9/jp-rest-cache/blob/master/jp-rest-cache.php

    Have a good day!

    Cheers
    Ash

    Thread Starter wordpressmenow

    (@wordpressmenow)

    hi ashok

    thanks for your reply.

    yes, i stumbbled uppon this git too but find it hard to hook it to the woo API…

    there is no option in W3 to add param to url (like: w3cash=1) to force caching of this specific url?

    Ashok

    (@bappidgreat)

    Hi wordpressmenow

    Well, I am not quite sure about that, how’s about using Accepted query strings in Advanced page caching settings?

    Let us know if it works.

    Have a good day!

    Cheers
    Ash

    Thread Starter wordpressmenow

    (@wordpressmenow)

    thanks, i will try that and keep you posted 🙂

    Thread Starter wordpressmenow

    (@wordpressmenow)

    well, it doesnt work… it actually breaks the API call 🙁

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Woocommerce REST API caching’ is closed to new replies.