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

Consider file modification time for tile and info cache #41

Open
jechols opened this issue Oct 14, 2022 · 0 comments
Open

Consider file modification time for tile and info cache #41

jechols opened this issue Oct 14, 2022 · 0 comments

Comments

@jechols
Copy link
Member

jechols commented Oct 14, 2022

When a file is replaced by another with different dimensions, the cache is a mess and wrecks things until the cache(s) expire. Since we don't expire based on a time, instead opting for a "most popular" kind of cache, the expiration can be seconds, hours, days, weeks, etc.

It might take a bit of work to figure this out, but it would really be ideal to have cached requests actually look at the file just to get a quick stat - if the mod time is more recent than the cached data, don't serve up the cached data.

Of course we don't currently store any kind of cached data timestamp, so that would be the first step to having a smarter cache.

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