Application Programming Interface Guide > Web Services Operations > Operations Reference > clearResourceCache
 
clearResourceCache
Clear an existing resource cache. Only purposefully configured resources of type TABLE and PROCEDURE support caching. Procedure variants are cleared from the cache along with any cached results.
Use the refreshResourceCache procedure to initiate an immediate refresh of a table or cached view, or allow the cache to be refreshed on next use of the resource.
Location
/services/webservices/system/admin/resource/operations/
Note: This web services operation is different from the procedure of the same name, which is in the resource tree under /lib/resource.
Request Elements
path: The path of the resource configured to use caching.
type: The type of the resource. Valid values are TABLE and PROCEDURE.
Request Example
<resource:clearResourceCache xmlns:resource="http://www.compositesw.com/services/system/admin/resource">
<resource:path>/shared/examples/ds_inventory/inventorytransactions</resource:path>
<resource:type>TABLE</resource:type>
</resource:clearResourceCache>
Response Elements
N/A
Faults
IllegalArgument: If the path is malformed or an illegal type is provided.
IllegalState: If the cache is disabled.
NotAllowed: The resource type must support caching. Only TABLE and PROCEDURE resources support caching.
NotFound: If the resource or any portion of the path to the resource does not exist.
Security: If the user does not have READ access on all items in path other than the last one.
Security: If the user does not have READ access to the last item in path.
Security: If the user does not have the ACCESS_TOOLS right.