• Resolved Noon

    (@sevenkader)


    Hello, I’m having trouble finding to cache I don’t know if it’s working. Do you have an example of what a global cacheable request header looks like? I’m using an app that uses rest API, and I’m using woocommerce

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Richard Korthuis

    (@rockfire)

    Hi @sevenkader

    Thank you for using our plugin!

    I am not really sure what it is you are asking? You can see if the cache is working by checking if there are caches under Settings > WP REST Cache > Endpoint API Caches.
    Regarding the “global cacheable request headers”: this is something you can use to distinguish between seperate caches. For example if you want seperate caches based upon the Authorisation header.
    Regarding WooCommerce: please keep in mind that by default our plugin only caches the default WordPress REST endpoints, so WooCommerce REST Endpoints aren’t cached automatically.

    Thread Starter Noon

    (@sevenkader)

    Do you have woocommerce endpoints that I can add? Like, woocommerce is one of the biggest things on wordpress, if you could add that that would help a lot. I’m very new to any of this, just wanted to know if there are things that you know of you can list here that can be added

    Plugin Author Richard Korthuis

    (@rockfire)

    Hi @sevenkader

    You can find a list of all WooCommerce REST API endpoints on their website: https://woocommerce.github.io/woocommerce-rest-api-docs/

    But keep in mind that adding them like described in our FAQ will not have them flushed automatically once there contents are changed. You would have to create custom code for that. (And that is why it isn’t default enabled in our plugin.) We are working on a (paid) add-on for the WP REST Cache to support the WooCommerce REST API, but it is a longterm plan and I do not have any date when it will be ready.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cacheable request header example’ is closed to new replies.