WMSMapProvider cache configuration

Feedback


SuperMap iServer supports generating caches for service providers to boost performance. While accessing services using remote WMS service provider, map caches can be generated locally for remote WMS map service through enabling the WMSMapProvider cache to improve the access speed.

The following two methods can be employed for setting: Check Enable Cache in the advanced settings while creating service provider of the WMSMapProvider type; modify the configuration information of the created service provider of the WMSMapProvider type by checking Enable Cache in iServer WebManager or changing the cacheEnabled parameter of WMSMapProvider to true in Service configuration file.

Example: Publish Remote WMS Service as Local REST Map Service and Enable WMSMapProvider Cache

  1. Click Services > Provider(Set)s > Add service provider in iServer WebManager, select WMS Map Provider as the type, named wms111MapWorldProvider, input the WMS service root URL http://iserver.com:8090/iserver/services/map-World/wms111, and check Enable caching in Advanced settings.
  2. Click Services > Component(Set)s > Add service component in iServer WebManager, named wms111MapWorldComponent, select the WMS map provider above, and select rest interface under Interface bind to component.
  3. Access the published service http://localhost:8090/iserver/services/wmsmap/rest/maps
  4. Select to browse the WorldMap_Day through the client, or after accessing the child resource of returned picture, tileImage for instance, check the cache folder cacheWMS of the WMS service provider under %SuperMap iServer_HOME%\webapps\iserver\output\cache, which is used to store cache files generated during browsing, here the folder is WorldMap_Day_100x100.
  5. When the service is accessed next time, the system will not send request to the remote WMS service of WMSMapProvider. Local cache files will be called directly to enhance access speed.

One thing needs to point out is that cache of WMS map provider is controllable. System administrators can enable or disable cache. Once disabled, cache files will be deleted.

Cache of WMSMapProvider is meaningful for service aggregation.