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

1 Answer 1

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. Apr 23, 2015 at 11:24
  • 1
    Apologize to answer rather than to only drop a comment. sorry.
    – Ismail
    Apr 23, 2015 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. Apr 23, 2015 at 11:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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