Skip To Content

Ways to add tiles to a cache

There are several ways you can add tiles to a cache.

  • Build the cache automatically when the service is published.
  • Build the cache manually after the service is published using the Manage Map Server Cache Tiles geoprocessing tool.
  • Build the tiles on demand when they are first visited by a user.

A small cache can be built in one attempt at the time the service is published. Large caches require more planning and may require that you run the caching tools manually or that you fill in some tiles on demand. See Strategies for creating map cache tiles.

The following sections explain ways that you can add tiles to a cache. These sections go into more detail than the basic steps for creating a cache.

Build the cache automatically when the service is published

When you first define the properties for your service on the Service Editor dialog box in ArcMap, you can choose to build the cache automatically at the time the service is published. To do this, click the Caching tab and click Build cache automatically when the service is published. It's recommended that you do this only if your cache covers a small extent (like a city or county), or if you only have small scales selected. You can click the Calculate Cache Size button to see the anticipated size of your cache.

When you choose to build the cache automatically at publish time, the caching job is sent to the server and you can safely continue working in Service Editor or even close Service Editor while you wait for your job to complete. Even though the Manage Map Server Cache Tiles tool quickly gives a completion message, your cache is still being built on the server. The best way to learn the progress of your cache is to right-click the service in the Catalog tree in ArcMap and click View Cache Status.

Tiles that you do not create when you publish the service can be built later using the Manage Map Server Cache Tiles tool or on-demand caching.

Build the cache manually after the service is published

If you choose to build the cache manually after the service is published, use the Manage Map Server Cache Tiles geoprocessing tool in the Server Toolbox. This tool allows you to create, delete, or update tiles in your cache.

Note:

You cannot launch the caching tools from Manager.

Follow these steps to access the tool.

  1. Expand the GIS Servers node in ArcCatalog or the Catalog window in ArcMap.
  2. Within a publisher or administrative connection to your ArcGIS Server site, find the service for which you want to create tiles.
  3. Right-click the service and choose Manage Cache > Manage Tiles.

    This option is only available if you have previously used the Service Editor to specify that you want to draw your service using tiles from a cache.

    When you access the tool through the Service Editor, most of the parameters are automatically populated with values that the tool reads from the map service. If you access the tool through the Geoprocessing menu, you need to specify the service you want to cache. To do this, drag the service from the Catalog tree into the first parameter of the tool. Once you do this, most of the remaining properties fill in with their default values.

  4. Supply the required parameters and launch the tool. To understand each parameter of the tool, click the Show Help button and click the parameter that you want to learn about.

    One parameter that you must manually set no matter how you open the tool is Update Mode. If you're building the cache for the first time, choose Recreate All Tiles. If you're updating the cache, see Map cache updates for guidelines on which settings to use.

    Once you've supplied the service name and the update mode, you can get started with creating the cache, or you can change some of the default settings. If you uncheck Wait for job completion, you'll be able to close ArcMap while the server is building your tiles. You can check the status of your cache later by right-clicking the service in the Catalog tree, and clicking View Cache Status.

Cache on demand

You can configure your cache to create tiles when an end user navigates to an uncached area of the map. This practice of on-demand caching should be used as a way to display less-commonly-visited areas of the map that you do not have the time or disk space to cache in full. See Map caching on demand to learn how to set up and use on-demand caching.