unfulvio / wp-api-menus

:abcd: Menu routes for WordPress JSON REST API.
https://wordpress.org/plugins/wp-api-menus
GNU General Public License v2.0
140 stars 59 forks source link

wp menu caching? #34

Closed darethas closed 8 years ago

darethas commented 8 years ago

Hello,

I wanted to first say thank you for the plugin, it has helped me immensely.

I noticed there was a certain delay between when the api response updates with any modifications to the menu. Is there some internal caching going on, or is this dictated by wp or wp-api? I am relatively new to the wordpress world and learning all these things, so apologize if this question seems ignorant.

Thank you.

fahrradflucht commented 8 years ago

AFAIK there is no caching going on the lives over multiple requests in the plugin.

However there is some caching going on in wordpress (mainly OPcache).

While the question talks about the Docker image in specific you can probably extrapolate how to turn it off from this SO answer.