AGSLayer refresh for api 100

442
1
04-19-2017 09:42 AM
mh10
by
New Contributor III

In quartz is there a way to refresh a layer so that it reloads all tiles? The old api had a refresh method.

I can see that some layer classes don't have any caching but I am looking for caching with the ability to force an update.

thanks

0 Kudos
1 Reply
DiveshGoyal
Esri Regular Contributor

We plan on providing a way to refresh layers in the upcoming release. You will be able to provide an interval at which to automatically update the tile layer.

Diving into the internals a little, the tile layer maintains a temporary cache where it stores tiles that have already been fetched for display. This is in addition to a HTTP cache that the system maintains for tiles fetched over the network. When the interval threshold is reached, we will invalidate the layer's temporary cache and re-request the tiles in order to display, but the tiles requests may be serviced from the HTTP cache depending upon what expiry headers were sent by the server. There isn't a way to subvert the HTTP cache and force going back to the server when the server suggests HTTP caching. In other words, the interval only applies to the layer's temp cache

0 Kudos