I know it happens on a daily basis, but I need to know when it is exactly as I need to fetch popular movie IDs as soon as it gets updated. Is it midnight of London time?
Accessing the media items directly (ie. /movie/550)
Accessing a media item from a list (ie. search, now playing etc...)
The nightly popularity job for movies is usually finished by around ~6:00 AM UTC.
For #1, remember the media end points are currently cached for 6 hours so depending on when the item was stored in the cache is when it will be purged. These times will be different for every item.
For #2, these methods are not cached and will reflect the updated popularity values as soon as they've been saved. All values are saved by 6:00 AM UTC.
I usually access the media items directly, so I will reload my database list every day around -6 AM UTC. If I count correctly, it makes midday in Central European time. Thanks!
Sorry for re-opening it but I am working on it and having some issues.
Is there a possibility to access updated list at the certain time (6:00 AM) from /discover/? Or is the data continuously cached as well?
I realized I can't access the data which is cached with different update times as I need to copy IDs of popular movies to my database. And, obviously, I don't want to do this every time the page is loaded.
/discover falls into group #2, so they are not cached. There's no ID based query for discover, but if the results can be found in a way discover supports, you bet, got for it.
Travis Bell 的回复
于 2016 年 08 月 22 日 2:56下午
Hi T.I.P,
There's 2 points of reference for this data.
The nightly popularity job for movies is usually finished by around ~6:00 AM UTC.
For #1, remember the media end points are currently cached for 6 hours so depending on when the item was stored in the cache is when it will be purged. These times will be different for every item.
For #2, these methods are not cached and will reflect the updated popularity values as soon as they've been saved. All values are saved by 6:00 AM UTC.
Tomáš 的回复
于 2016 年 08 月 22 日 3:17下午
I usually access the media items directly, so I will reload my database list every day around -6 AM UTC. If I count correctly, it makes midday in Central European time. Thanks!
Travis Bell 的回复
于 2016 年 08 月 22 日 3:21下午
Yup, no problem.
Tomáš 的回复
于 2016 年 08 月 23 日 9:14上午
Sorry for re-opening it but I am working on it and having some issues.
Is there a possibility to access updated list at the certain time (6:00 AM) from /discover/? Or is the data continuously cached as well?
I realized I can't access the data which is cached with different update times as I need to copy IDs of popular movies to my database. And, obviously, I don't want to do this every time the page is loaded.
Thanks!
Travis Bell 的回复
于 2016 年 08 月 23 日 9:58上午
Hi T.I.P,
/discover
falls into group #2, so they are not cached. There's no ID based query for discover, but if the results can be found in a way discover supports, you bet, got for it.Tomáš 的回复
于 2016 年 08 月 23 日 10:06上午
Thanks! Closing now :-)