Hy, how much videos/trailers can be for one movie or tv show, and how long does it take to see the newly added trailer to the response of a movie, or any other updates (tagline editing, rating...), TNX
Can't find a movie or TV show? Login to create it.
ต้องการให้คะแนนหรือเพิ่มรายการนี้ไปยังรายการหรือไม่
ไม่ใช่สมาชิกเหรอ
Reply by Travis Bell
on December 15, 2016 at 10:08 ก่อนเที่ยง
Hi @martian
There is no limit to the number of videos that can be added to an entry.
Calls to any of our "list" methods like search and discover are more or less instant. Calls to the media objects like /movie/{id}/* are cached for 6 hours. So depending on when the object you're calling for was originally cached it can take up to 6 hours. You can inspect the TTL of an object by looking at the headers. You'll see 2 relevant headers like this:
That shows you how long it's been in cache and when it will expire in seconds.
Reply by martian
on December 16, 2016 at 2:52 ก่อนเที่ยง
Great, tnx
Reply by yukti
on December 20, 2016 at 4:56 หลังเที่ยง
X-Memc-Age: 23269 -> it's been in cache for last 6.46 hours. X-Memc-Expires: 5531 - > new data will be loaded in 1.53 hours.
Am I right ? If right then I will also be able to cache the data.
Reply by Travis Bell
on December 20, 2016 at 7:15 หลังเที่ยง
Yes, that is right. You are more than welcome to cache the data.
Reply by yukti
on January 6, 2017 at 6:06 หลังเที่ยง
I think now "cache-control : public, max-age=21600" in response header indicating cache age. Am I right ? max-age=21600 means new data will be available in 6 hour again. right?
Reply by Travis Bell
on January 6, 2017 at 6:34 หลังเที่ยง
The
cache-control
header indicates the length of time the object will be cached for. TheX-Memc-Age
header indicates how long the object has been in the cache for.