How to programmatically set layer caching options in ArcMap

1683
0
12-15-2015 12:46 PM
Highlighted
New Contributor

I'm using WMTS layers in ArcMap and would like to programmatically work with their caching options.  When you bring up the Layer Properties dialog for a tiled layer there is a Cache tab for controlling these options.  This tab also reports the folder for the layer's cache and has a button for manually clearing it.  Is there a class or interface I can get a handle on to work with these options?

My real goal is to periodically clear the cache for certain layers in a map.  That way I can be sure the user is seeing the latest data.  Is there a method I can call to clear a layer's cache, or just to find its cache folder so I can clear it myself?

Reply
0 Kudos
0 Replies