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

debt: implement automated cache eviction for soil ID cache #1358

Open
shrouxm opened this issue Jul 2, 2024 · 0 comments
Open

debt: implement automated cache eviction for soil ID cache #1358

shrouxm opened this issue Jul 2, 2024 · 0 comments

Comments

@shrouxm
Copy link
Member

shrouxm commented Jul 2, 2024

Description

Currently the SoilIDCache table has no automated cache eviction, so it will slowly fill up over time. We should add data deletion commands to do some combination of:

  • delete entries not associated with a site
  • delete entries older than some cutoff time
  • delete all entries

We're not in a rush to do this because it's possible we'll be switching architectures for offline support anyway before the cache gets too full.

Additional context

See e.g. the clean_up_deleted_files command for an example of defining a command, and this file for an example of triggering it to run regularly.

@shrouxm shrouxm added this to LandPKS Jul 2, 2024
@github-project-automation github-project-automation bot moved this to Todo in LandPKS Jul 2, 2024
@shrouxm shrouxm added this to the LandPKS Backlog milestone Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant