Skip to content

Periodically clear the images from cache #649

@Swepilot

Description

@Swepilot

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions