Choosing application settings

When creating a web application in Web Applications Manager, you need to choose whether information about layers in the map should be cached in application state for performance. This setting is available in the Application Settings tab or wizard panel in Web Applications Manager.

Choosing whether to cache layer information in application state

The Application Settings tab contains an option to cache layer information in application state. This improves application memory usage and startup time by storing certain information about layers in the application in a cache on the server. Layer information is retrieved from the service the first time the application is accessed. Subsequent sessions obtain the information more quickly from the cache.

By default, the cache is refreshed every 24 hours. You can change this value in Visual Studio by editing the CacheTimeOut property on the MapResourceManager control.

If you restart the map services used by your application because your map document changed, you should manually refresh the cache. You also need to refresh the cache if your application accesses an external service whose layer information changed.

To refresh the cache, use the Applications tab in Web Applications Manager to open the list of existing web applications. Right-click your application name and click Restart.

10/19/2012