Skip to content
New issue

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

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

Already on GitHub? # to your account

Utility command for cleaning up cache #193

Open
Michad opened this issue Aug 24, 2024 · 0 comments
Open

Utility command for cleaning up cache #193

Michad opened this issue Aug 24, 2024 · 0 comments

Comments

@Michad
Copy link
Owner

Michad commented Aug 24, 2024

To consider:

It's easy to neglect your cache if using an unbounded option such as S3. It would be nice to have a command that helps clean up a cache. At the very least have an option to delete all cache items for a specific layer. Nicer would be the ability to get a report of layers that exist in cache but not configuration.

Downside: this would require substantially more complexity in the cache interface. There's many edge cases that aren't trivial to handle well when you consider layers can be parameterized. Cleaning up is specific to the cache and some make it tricky to handle right, meanwhile dedicated tools for deleting data exists. As well currently there's a strong division of responsibility where tilegroxy writes but does not do any cleanup beyond setting a TTL where available - this blurs that and makes it expected that tilegroxy will handle the full cache lifecycle itself.

Probably need a decision record for this topic.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant