9

I am writing a plugin which makes calls to https://api.wordpress.org/plugins/info/1.0/{slug}.json

Is there a limit on making calls to WordPress.org API's? For example once per hour or every 10 minutes etc. Read more - https://codex.wordpress.org/WordPress.org_API#Plugins

3
  • Any suggestions?! – kanenas Apr 20 '15 at 16:23
  • 1
    I guess it is probably easier and faster to ask the wordpress.org people directly. – Nicolai Apr 23 '15 at 11:21
  • 1
    @ialocin thanks for the suggestion! So here it is wordpress.org/support/topic/… – kanenas Apr 23 '15 at 21:10
2

I 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

3
  • Although what you say is correct, it isn't an answer to the question. – Nicolai Apr 23 '15 at 11:24
  • 1
    Apologize to answer rather than to only drop a comment. sorry. – Samuel Elh Apr 23 '15 at 11:28
  • 2
    Not a problem and actually maybe it isn't that bad as additional insight and information, so let it be an answer I guess. – Nicolai Apr 23 '15 at 11:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.