ClearResourceCache

Clear the cache on a resource. Both procedures and SQL_TABLE resources support clearing of the resource cache.

This built-in procedure is discussed in the “TDV Caching” section of the TDV User Guide.

Note: This procedure is different from the web services operation of the same name, which is in the resource tree under /services/webservices/system/admin/resource/operations/.

Location

/lib/resource/

Inputs

path: The path to the resource.

type: The type of the resource.

Outputs

N/A

Exceptions

IllegalArgumentException: If the path is malformed or an illegal type is provided.

IllegalStateException: If the cache is disabled.

NotAllowedException: If the resource type does not support caching. Only SQL_TABLE resources support caching.

NotFoundException: If the resource or any portion of the path to the resource does not exist.

SecurityException: If the user does not have READ access on all items in the path other than the last one.

SecurityException: If the user does not have WRITE access to the last item in the path.