mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.37k stars 1.33k forks source link

Remove invalid items from the file cache #9225

Open kkaefer opened 7 years ago

kkaefer commented 7 years ago

In https://github.com/mapbox/mapbox-gl-native/pull/6176, we attempted implementing eviction of invalid resources from the cache. I still believe this is a valid feature. Invalid resources could end up in the cache in the following scenarios:

Our current workflow works like this:

This means that we cache the data before we know that it's valid/parseable. Subsequent loads will fetch the invalid data from the cache and fail at parsing again. Instead, we should remove this data from the cache, and attempt to re-fetch the data.

Possible caveats are:

stale[bot] commented 5 years ago

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

chloekraw commented 5 years ago

This is still a priority

stale[bot] commented 5 years ago

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.