Поддержка The Movie Database

With the ever-current trend of increasing efficiency, I am trying to integrate cash mechanisms into the tools I use for TMDB queries. The temporal extension of the cache is currently 24 hours, so as to ideally have only one access per title per day. Are there times to refer to for updates from the DB that are useful to share or is the 24h period already considered optimal?

4 ответов (на странице 1 из 1)

Jump to last post

Hi @LucaZeta,

24 hours is fine. You may also be interested in tracking the changes, as to not make unnecessary requests.

I started to think you are a genius. Thanks to show me this way.

So, a little check. I acquire, for example, the information of a particular TMid movie. it modifies some variable, say the title. If I immediately reload the information from the API, I don't find any changes, but I ask about the changes of the last 24 hours I would expect to find, among others, my change. This happens, but not in a very short time, as happens to the site itself, which is able to update itself to the latest version a few seconds after the change. Am I doing something wrong or is this normal and API users have a certain delay in acquiring the latest changes?

The API caches data for ~8 hours. You will have to wait until the cache expires before you'll see the change.

Не можете найти фильм или сериал? Войдите на сайт, чтобы добавить его.

Глобальные

s фокусироваться на панели поиска
p открыть меню профиля
esc закрыть открытое окно
? открыть окно сочетаний клавиш

На страницах медиа

b назад (или выше, если применимо)
e перейти на страницу правки

На страницах сезонов

(стрелка вправо) перейти к следующему сезону
(стрелка влево) перейти к предыдущему сезону

На страницах эпизодов

(стрелка вправо) перейти к следующему эпизоду
(стрелка влево) перейти к предыдущему эпизоду

На всех страницах изображений

a открыть окно добавления изображения

На всех страницах правки

t открыть переключатель переводов
ctrl+ s отправить форму

На страницах обсуждения

n создать новое обсуждение
w сменить статус отслеживания
p публичное/приватное
c закрыть/открыть
a открыть страницу действий
r ответить в обсуждении
l перейти к последнему ответу
ctrl+ enter отправить своё сообщение
(стрелка вправо) следующая страница
(стрелка влево) предыдущая страница

Параметры

Хотите поставить оценку или добавить в список?

Войти