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

Periodically clear the images from cache #649

Closed
Swepilot opened this issue Jun 8, 2020 · 1 comment · Fixed by #841
Closed

Periodically clear the images from cache #649

Swepilot opened this issue Jun 8, 2020 · 1 comment · Fixed by #841

Comments

@Swepilot
Copy link

Swepilot commented Jun 8, 2020

I understand the purpose of using the CachedNetworkTileProvider is to have the tiles, well, cached. But what if I want to get fresh tiles from the server? After how long does the cache expire (if at all) and is it possible to expel the tiles manually?

My case is that I have a layer of weather data (not WMS) that I want to update periodically, but I don't want to use a non-caching provider.

I know the cached images are in the libCachedImageData directory but there is no way of telling which images belong to the layer in question. I rather not delete the whole cache.

Is there a way of doing this already or what would the best practice be?

@mootw
Copy link
Collaborator

mootw commented Jun 10, 2020

#577 and #564 both relate to this. 564 has to do with customizing the caching behavior.

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

Successfully merging a pull request may close this issue.

2 participants