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

active caching #271

Open
Tracked by #267
peterdudfield opened this issue Aug 22, 2023 · 0 comments
Open
Tracked by #267

active caching #271

peterdudfield opened this issue Aug 22, 2023 · 0 comments

Comments

@peterdudfield
Copy link
Collaborator

Detailed Description

Currently we use passive caching, a route is called and then the results are found and cached. If the results are already cached then we use the results.

Context

  • if two users call the route with no cache, then the route is called twice

Possible Implementation

  • Use active caching.
  • This could be done by every 1 mins, or when needed the cache is updated. For example the airflow could call the api. We could pass in a variable in the route called cache=False which forces the cache not to be used
  • Then the users always loads the cache
  • fail safe: if the cache is more than 1 hour old, then the cache is not used
@peterdudfield peterdudfield mentioned this issue Aug 22, 2023
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant