This question is going out to other fellow API users, possible Travis.
I was wondering if there is a better way of updating my local cached data about all movies then I am currently doing.
Example of what I am currently doing.
each day at around 00:30 GMT I have a php cron job that calls the below page.
https://api.themoviedb.org/3/movie/changes?api_key=APIKEY
From this page it first finds the total pages. Then it goes through each of the movie items on that page. Once it has finished that it moves onto the next page with the below link:
https://api.themoviedb.org/3/movie/changes?api_key=APIKEY&page=2
It does this till it gets to the last page.
currently this is taking my script around 1 hour and 45 minutes to updates all this data. As it is doing a full movie update of each of these movies. This is one of my ways to be 100% sure I have the most updated version of the movie data.
Do people have a better way of doing this or is this the best way?
Do people think it is better to hit this page once a week rather then once a day?
Doing something like:
https://api.themoviedb.org/3/movie/changes?api_key=APIKEY&page=2&start_date=2014-05-10
Thanks for anyones input.
Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.
Doriți să evaluați sau să adăugați acest articol într-o listă?
Nu sunteți membru?