The Movie Database Support

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

6 replies (on page 1 of 1)

Jump to last post

Hi @martian

how much videos/trailers can be for one movie or tv show

There is no limit to the number of videos that can be added to an entry.

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...),

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:

X-Memc-Age: 23269
X-Memc-Expires: 5531

That shows you how long it's been in cache and when it will expire in seconds.

Great, tnx

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.

Yes, that is right. You are more than welcome to cache the data.

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?

The cache-control header indicates the length of time the object will be cached for. The X-Memc-Age header indicates how long the object has been in the cache for.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Masuk