/clearcache[.<format>]
The clearCache resource is an algorithm resource used to clear the 3D cache.
Supported methods
Supported output formats: rjson, json, jsonp, html, xml.
Below is an example of performing an HTTP request on a specified URI with rjson as the output format. supermapiserver in the URI is the name of the server.
http://supermapiserver:8090/iserver/services/3D-sample/rest/realspace/datas/WorldMap/clearcache.rjson
Clears the 3D cache.
Field | Type | Definition |
_cache | boolean | [Optional parameters] Whether to use cache, the default is True. False means close all the cache. |
After a GET request is performed on the clearCache resource, 搕rue?or 揻alse?is returned as the representation indicating whether the 3D cache is successfully cleared (the representation is included in the entity body of the response message).
Below is an example of performing a GET request on the clearCache resource with the parameters included in the URI:
http://supermapiserver:8090/iserver/services/3D-sample/rest/realspace/datas/WorldMap/clearcache.rjson
If clearing the 3D cache is successful, the returned representation of the operation result in rjson format is as follows:
true
Asks for the response identical to the one that would correspond to a GET request, but without the response body. This is useful for retrieving meta-information written in response headers, without having to transport the entire content. The meta-information includes the media-type, content-encoding, transfer-encoding, content-length, etc.
HEAD request can be used to check if the clearCache resource exists, or if the resource can be accessed by clients. It can also determine if the clearCache resource supports an output format <format> if performed on a URI with .<format> included.