• Resolved ajmalapiacademy

    (@ajmalapiacademy)


    Although the WooCommerce REST API is not caching responses, the WP REST API is successfully implementing caching.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ajmalapiacademy

    (@ajmalapiacademy)

    WooCommerce REST API Not Implementing Caching

    I am currently experiencing an issue where the WooCommerce REST API is not caching responses, while the WP REST API is successfully implementing caching. I am looking for assistance in understanding why this is happening and how to enable caching for the WooCommerce REST API.

    Is it possible to cache the WC REST API by WP REST Cache?

    Plugin Author Richard Korthuis

    (@rockfire)

    Hi @ajmalapiacademy

    Thank you for using our plugin!

    Indeed our plugin does not cache the WooCommerce REST API out-of-the-box. We only cache the default WordPress REST endpoints and not any custom endpoints created by plugins (or yourself). You can however tell our plugin to cache custom endpoints. See our FAQ on how to do so.

    Having said that, 4 years ago I did a little proof-of-concept on how to cache the WooCommerce REST API, pleas check out my posts there to have a kickstart in how to cache those endpoints.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[NSFW] Why Woocommerce rest api is not caching’ is closed to new replies.