This plugin will allow WordPress to cache the responses of REST API, making it much faster..
Activate WP REST Cache plugin through 'Plugins WordPress..
Check if the ' WP REST Cache Must-Use Plugin is there, if not copy the file wp-rest-cache php from the folder of WP REST Cache Plugin to the folder wp-content mu-plugins...
The default timeout for caches generated by WP REST Cache plugin is set to year.
I have created WP REST endpoint, will the plugin cache this endpoint..
No, the plugin will not cache your custom endpoint unless you tell it to cache it using the hook wp rest cache allowed endpoints.
Please keep in mind that once you do so the plugin will not flush the cache of that endpoint if something is edited ...
Please note WP REST Cache plugin will try to detect relations in the data to flush the cache when related items are edited, but this detection is not flawless so your caches might not be flushed automatically...
On the overview page I see the object type is 'unknown Can I help WP REST Cache plugin to detect the object type correctly..
Interested in development.., check out SVN repository, or subscribe to the development log by RSS...
Read more