Hey there,
After installing this plugin, most of my custom endpoints are now returning something along the lines of this:
{
namespace: "shop",
methods: [
"GET"
],
endpoints: [
{
methods: [
"GET"
],
args: [ ]
}
],
_links: {
self: "https://myshop.com/wp-json/shop/v1/products"
}
}
]]>
After upgrading my WP install for 5.0 (Gutenberg) I ended up getting white screens whenever I went to edit a page or sometimes got errors when attempting to edit a post.
]]>would it be possible to allow users with Editor role to press the “clear cache” button?
i tried editing the ‘manage_options’ capability of /includes/admin/classes/class-wp-rest-cache-admin.php’s function admin_menu(): the Editor can now click on the button, but no real cache purge seems to take effect (it’s only when an Administrator role clicks on the button that changes are shown).
or would you suggest using a role-editing plugin? Members, for instance?
]]>Hi,
It looks like caching not working.
It takes the same time to load the REST API as it took without plugin. Seems like still querying database to get list of posts.
Hi,
Great work developing plugins for WordPress REST API ??
Do you have an ETA of when will you support the latest Versions of WP?
I would like to use this plugin but its not updated in 2 years..
Do you have any roadmap on github witch I can help with if you want.
Best Regards,
]]>Hello,
I have installed WP REST API Cache and it is caching the rest api. However, the cache is not getting cleared after the new post publish
I have added the following code, but it is still not working
add_action( 'save_post', function( $post_id ) {
if ( class_exists( 'WP_REST_Cache' ) ) {
WP_REST_Cache::empty_cache();
}
} );
Also, when I try to delete cache manually, the newest post is not appearing on the rest API. The API is getting updated only when I disable this plugin
Could you please let me know the reason?
]]>Hello,
Ignore this as I have posted another thread with much explanation
]]>hi
is this plugin compatible with woocommerce REST API v3? (not the new WP-REST API)
thanks!
]]>