I'm building a WordPress plugin for a client and I want to know the best way for managing the data pulled from the API. For example, if I were to load a TV show should I then store the resulting data in a local database table for quicker look up? Or for speed and performance is it best to query the API each time?
Same goes for looking up seasons and episodes for a TV show. I could query the API for these and store them locally when I first load the TV show. Or I could just store the TV show id and perform all these queries on page load (go get the TV show name, all the seasons and episodes).
I hope this make sense. Thanks in advance.
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?