Select to view content in your preferred language

Help me understand caches and refresh options

4313
17
10-19-2010 04:06 PM
PeterLindstrom
Deactivated User
I've been bringing my data into ArcGIS Explorer via layer files. In each layer's properties under Source Data, I've set the Refresh Options to "when the map is opened or the layer is added," thinking that refresh frequency would be about right for my data (Source Data help page). However, after making changes to my data from ArcGIS Desktop (with ArcGIS Explorer closed), I have to actually go into Manage Layers and clear the cache (as explained in this thread) for the updated layer before the changes will appear in ArcGIS Explorer. The refresh options make it sound like it will refresh every time I open the map, but this doesn't seem to be happening. I can't tell if it's a bug or if I'm misunderstanding how this is intended to work.

Regardless, it's going to be difficult to get people here to use ArcGIS Explorer if they're constantly having to go in and refresh the map cache.
0 Kudos
17 Replies
PeterLindstrom
Deactivated User
I'm still looking for help on this, from ESRI or anyone else willing to share their experience. Still not sure if it's a bug or I'm misunderstanding the intent of the refresh options.
0 Kudos
AndreiIvanov
Deactivated User
Peter, I can verify this is a bug. We will take a look at it.
0 Kudos
BrianLeroux
Frequent Contributor
I am having the same issue with maps not refreshing on open. My map is based on numerous wms layers from NOAA and needs to be kept current. Does anyone know if there is a way to create a tool (on toolbar) that would clear cache & refresh for all selected layers?
0 Kudos
DavidCarpenter
Frequent Contributor
Is there a patch for this bug? 
We started using AGX in a Pilot Project last week because it was the perfect tool and just discovered this issue....bit of a show stopper.   Thx.
0 Kudos
AndreiIvanov
Deactivated User
The issue (when map is open and cache is not deleted) is fixed, and will go into the next release of ArcGIS Explorer.
0 Kudos
DavidCarpenter
Frequent Contributor
Do you folks have a rough timeline for the release that you are able to share? 

And thanks for the quick response!!
0 Kudos
DavidCarpenter
Frequent Contributor
Based on our situation and the time lines on our Pilot Project a better question would be, is there an actual workaround to this issue? 

I have tried clearing the caches of my queries under "Manage Layers", I have also deleted all Caches under "ArcGIS Explorer Options --> Advanced --> Cache Management".  No matter what I do I cannot get ArcGIS Explorer to reflect edits that have been made to the SDE feature class unless I recreate all the queries again from scratch. 

I my case the data source I am querying in ArcGIS Explorer is an ArcGIS Server Map Service (v10).  Queries are very simple and results are very effective....I just need them to update without recreating the queries over and over to see the latest edits from the field.
0 Kudos
BrianLeroux
Frequent Contributor
I created a work around as an Add-In. The following will clear the cache on the selected layer.

Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Linq
Imports System.Text

Imports ESRI.ArcGISExplorer
Imports ESRI.ArcGISExplorer.Application
Imports ESRI.ArcGISExplorer.Geometry
Imports ESRI.ArcGISExplorer.Mapping
Imports ESRI.ArcGISExplorer.Data
Imports ESRI.ArcGISExplorer.Threading

Public Class CacheButton
    Inherits ESRI.ArcGISExplorer.Application.Button

    Public Overrides Sub OnClick()

        Dim xlayer As Layer = TryCast(ESRI.ArcGISExplorer.Application.Application.SelectedItems(0), Layer)
        xlayer.ClearCache()
        System.Windows.Forms.MessageBox.Show("The cache for the selected layer has been cleared!", "Layer Cache", Windows.Forms.MessageBoxButtons.OK)

    End Sub

End Class
0 Kudos
AndreiIvanov
Deactivated User
0 Kudos