admin管理员组文章数量:1323023
I am writing a plugin which makes calls to .0/{slug}.json
Is there a limit on making calls to WordPress API's? For example once per hour or every 10 minutes etc. Read more - _API#Plugins
I am writing a plugin which makes calls to https://api.wordpress/plugins/info/1.0/{slug}.json
Is there a limit on making calls to WordPress API's? For example once per hour or every 10 minutes etc. Read more - https://codex.wordpress/WordPress_API#Plugins
Share Improve this question asked Apr 18, 2015 at 10:06 kanenaskanenas 4261 gold badge6 silver badges20 bronze badges 4- Any suggestions?! – kanenas Commented Apr 20, 2015 at 16:23
- 1 I guess it is probably easier and faster to ask the wordpress people directly. – Nicolai Grossherr Commented Apr 23, 2015 at 11:21
- 2 @ialocin thanks for the suggestion! So here it is wordpress/support/topic/… – kanenas Commented Apr 23, 2015 at 21:10
- Still relevant today – TonyG Commented Dec 28, 2023 at 22:35
1 Answer
Reset to default 2I have no idea if WP API has limits, but, you should always cache your requests every time you deal with a third party API access. it is a good practice to cache the response for an hour or whatever, it will help optimizing the site which will use your plugin, thus it loads faster due to cached responses.
I suggest you use Transients API « WordPress Codex
本文标签: plugin developmentIs there a limit on making calls to WordPressorg API39s
版权声明:本文标题:plugin development - Is there a limit on making calls to WordPress.org API's? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742111270a2421267.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论