How to open Request Cache

Feedback


Request Cache supports all-around REST service, such as the map, data, analysis, 3D, which can improve response efficiency of the server side. Request Cache requires the service source or data source of the target services belong to REST services.

The configuration of Request Cache can be implemented by modifying the configuration parameters of service provider. The service providers support to open Request Cache are: REST map service provider, REST data service provider, REST spatial analysis service provider, REST traffic transfer service provider, REST transportation analysis service provider and REST 3D service provider.

Open the Request Cache by checking the "Disable cache" box. Or you can modify the <cacheDisabled> to false in XML configuration file, please refer to Configuration for Service Provider layer.

 Take the REST 3D service provider as an example, the configuration steps are as follows:

  1. Add the REST 3D service provider and remote service address: http://iserver.com:8090/iserver/services/realspace-sample/rest. Enable cache:
  1. Add the 3D service component restRealspaceProvider-iserver. Use above service provider restRealspaceProvider-iserver and add the rest interface:
  1. In the 3D scene list, it browses the scene in the format of 3D. The Request Cache folder restrequestcache will be created in %SuperMap iServer_HOME%\webapps\iserver\output\temp.

When access this service again, the system won't send request to remote REST service. It will call the local cache file to improve the accessing efficiency.

If you don't need the Request Cache, close it directly. But iServer recommends you opening this funtion, and Request Cache is open by default.