Repository navigation
[core] Add API for invalidating tiles - #14702
Conversation
3a7ac91 to
eb67eae
Compare
|
If I'm understanding this correctly, this PR addresses the possibility of invalidating tiles, but it doesn't address the part of apps being able to reclaim the space taken by those invalidated tiles as described on #4376, right? |
Add new APIs for invalidating tiles, effectively forcing Mapbox GL Native to check with the servers if the tiles are valid before using them. This is more efficient then deleting tiles, because in case of valid tiles, they won't get downloaded. Fixes #4376.
eb67eae to
e1590a1
Compare
Correct, this will come on a follow-up PR for changing the cache size. |
44efa24 to
1d1704f
Compare
@tmpsantos, quick clarification question - does this PR ask the renderer to always check with the servers whether tiles are valid before using them, or does it only check for tiles that a developer has programmatically marked as invalid? |
If you invalidate the ambient cache with |
Add new APIs for invalidating tiles, effectively forcing Mapbox GL Native to check with the servers if the tiles are valid before using them. This is more efficient then deleting tiles, because in case of valid tiles, they won't get downloaded.
Fixes #4376.