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?
¿No encuentras una película o serie? Inicia sesión para crearla:
¿Quieres puntuar o añadir este elemento a una lista?
¿No eres miembro?
Contestado por Travis Bell
el 20 de noviembre de 2023 a las 11:05
Hi @LucaZeta,
24 hours is fine. You may also be interested in tracking the changes, as to not make unnecessary requests.
Contestado por LucaZeta
el 21 de noviembre de 2023 a las 19:50
I started to think you are a genius. Thanks to show me this way.
Contestado por LucaZeta
el 29 de noviembre de 2023 a las 17:42
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?
Contestado por Travis Bell
el 29 de noviembre de 2023 a las 17:51
The API caches data for ~8 hours. You will have to wait until the cache expires before you'll see the change.