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
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?
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
thanks, i will try that and keep you posted 🙂
well, it doesnt work… it actually breaks the API call 🙁