White (empty) tiles being cached

Topics: General
Aug 19, 2013 at 5:52 PM
Hi radioman,

I have a problem with white tiles being cached in the database.
I have a situation where the internet connection is not always up.
Because of that sometimes tiles are not loaded correctly and the result is a white tile being written to primairy cache and secondairy.

When primairy cache is deleted gmap searches in the secondairy and finds a tile (wrong white one) and returns these and writes it to primairy.
That's the reason I implented the DeleteOlderThan method on the secondairy cache to remove the corrupt white tiles.
Or am I wrong?

What would be the correct steps to deal with this situation code wise?

Thanks in advance!
Aug 20, 2013 at 9:33 AM
what do you mean 'tiles are not loaded correctly'?
Aug 20, 2013 at 10:57 AM
If the internet connection is lost.
Tiles sometimes are written to cache as a white tile.

I think a part of the solution is a thread checking the internet connection while working with the map so the gmap instance switches to cache only automaticly.
Aug 20, 2013 at 12:59 PM
failed tiles doesn't go to cache
Aug 20, 2013 at 1:38 PM
Can you discribe what happens if gmap is running in serverandcache en the internet connection fails?
Aug 20, 2013 at 2:16 PM
tiles are loaded from cache, if there is no tile in cache, it tries to load it from the web, if fails, no tile are loaded or saved
Aug 21, 2013 at 9:12 AM
Ok, thanks!

The white tile issue is my own fault. In the custom provider I returned a blank tile if the tile was not found.