Quantcast
Channel: WordPress.org Forums » [W3 Total Cache] Support
Viewing all articles
Browse latest Browse all 19302

Optimizing Woocommmerce Rest API value calls

$
0
0

Replies: 0

ON the front page, there is a filter. Each filter is calling values from woo-commerce attribute.

Each drop down is making this call

https://oranonline.in/wp-json/wc/v2/products/attributes/18/terms?consumer_key=ck_cacbc40a74e687c02e8e6e7f2f46750b67e*****&consumer_secret=cs_56048eb39ee8d9a92491ea0a4484df11fb8*****

Simply the problem is that This is taking hell lot of time, despite being on VPS. How can this be optimized so that after first field is selected, next loads really quickly.

Also the above calls fetch data like,

[{“id”:633,”name”:”1000VA”,”slug”:”1000va”,”description”:””,”menu_order”:0,”count”:1,”_links”:{“self”:[{“href”:”https:\/\/oranonline.in\/wp-json\/wc\/v2\/products\/attributes\/18\/terms\/633″}],”collection”:[{“href”:”https:\/\/oranonline.in\/wp-json\/wc\/v2\/products\/attributes\/18\/terms”}]}},

and many more. If we can reduce the loading time, it would be of great help.

I am Using a VPS from Bluehost.
Also using this plugin, https://wordpress.org/plugins/wp-rest-api-cache/

  • This topic was modified 1 hour, 18 minutes ago by prashantrulz.

Viewing all articles
Browse latest Browse all 19302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>