AnsweredAssumed Answered

Turn off cache?

Question asked by alphamale on Oct 5, 2015
Latest reply on Oct 5, 2015 by modybsystematics-co-il-esridist

Hi, we've got an in-house gis server. 

I bring in a layer but can't see it in Arcmap.

When I go into the table of contents and uncheck "Enable Cache View Mode" then I can see it.


I suppose I have to either do something to set up the cache, or else disable the cache view mode.  I would like to do that programmatically.


This doesn't seem to work:




Dim pEnumLayer As IEnumLayer

pEnumLayer = cmap.Layers



Dim player As ILayer


  player = pEnumLayer.Next


Do While Not player Is Nothing


   player.cached = false


   'for some reason this is returning "4"

   player = pEnumLayer.Next


When this code is run the layer remains with "Enable Cache View Mode" checked.