Title: API Calls Question
Last modified: April 22, 2020

---

# API Calls Question

 *  Resolved [claytondavis](https://wordpress.org/support/users/claytondavis/)
 * (@claytondavis)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/api-calls-question/)
 * Pre-Download question…
 * When we use the API to call to TMDB, are we able to store the data in our site
   database so we can reference for future posts, etc.?
 * Can’t tell by the documentation if it is stored on our database or are we continuously
   calling to TMDB API?
 * Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [electrolund](https://wordpress.org/support/users/electrolund/)
 * (@electrolund)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/api-calls-question/#post-12716739)
 * I’ve asked this question before too. Currently, the plugin doesn’t have a caching
   system, as the complexity gets pretty steep (for instance, when and how often
   would it then need to request from TMDB for updated info?).
 *  Plugin Author [Kostas Stathakos](https://wordpress.org/support/users/djleven/)
 * (@djleven)
 * [6 years ago](https://wordpress.org/support/topic/api-calls-question/#post-12833783)
 * This was supposed to be the next ‘feature’, I have already started a version 
   of this a while now. It got sidetracked with the translation issues to fix. In
   any case, this needs to be done first and foremost to lighten the load of the
   very nice folks at TMDB who make this plugin possible in the first place.
 * It has been in the books since the beginning. Originally I opted not to do so
   because of a paragraph in the terms of use of the TMDB API which stated something
   like “no contents shall be stored in one’s db other than for caching purposes”.
   So I pushed back, wanting to make sure that the way it was handled would be in
   line with the TMDB terms.
 * The way this will work is that the payload will be cached in the db for a certain
   amount of time. There may or may not be a setting to allow a user to determine
   that amount of time. Then for the front end this will be applied automatically:
   When there is a request, the plugin will check if a cached version exists else
   it will call TMDB and then cache it. What I haven’t figured out completely is
   the wordpress backend behavior. To keep things simple, the admin will perhaps
   always get a ‘fresh’ view (that is then cached too). I thought of the admin being
   able to potentially compare the cached version to a fresh one and decide which
   to keep, but it seems a little more than I have time for right now.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘API Calls Question’ is closed to new replies.

 * ![](https://ps.w.org/my-movie-database/assets/icon-256x256.png?rev=1774218)
 * [My Movie Database](https://wordpress.org/plugins/my-movie-database/)
 * [Support Threads](https://wordpress.org/support/plugin/my-movie-database/)
 * [Active Topics](https://wordpress.org/support/plugin/my-movie-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-movie-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-movie-database/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Kostas Stathakos](https://wordpress.org/support/users/djleven/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/api-calls-question/#post-12833783)
 * Status: resolved