Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Caching of Title and Title Tracks for x duration #62

Open
rlaphoenix opened this issue May 26, 2023 · 0 comments
Open

Add Caching of Title and Title Tracks for x duration #62

rlaphoenix opened this issue May 26, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@rlaphoenix
Copy link
Member

Is your feature request related to a problem? Please describe.
This would be useful to not call the Service code's API calls so often, for ultimately the same calls (i.e., on error or when you want to change devine CLI args).

Describe the solution you'd like
It should jsonpickle the Titles and the Title's Tracks (once loaded) for say 30 minutes to the cache folder.
This cache should be kept for longer if further calls after the 30 minutes fail.

Describe alternatives you've considered
N/A

Additional context
Some services or titles may update at a more frequent pace. Perhaps like GEOFENCE and ALIASES, there should be a CACHE_TIME variable. Another problem is if the title fails after say 30 minutes, then what's to say it won't fail forever, I.e., a removed title or an outdated title id? Perhaps it should be purged after at least some sort of duration still, just not the 30 minutes.

@rlaphoenix rlaphoenix added the enhancement New feature or request label May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant