Arbortext Command Language > Functions by Alphabetical Listing > http_cache_flush
  
http_cache_flush
http_cache_flush ([url])
http_cache_flush clears one or more files from the URL cache. If the optional url parameter is omitted, the function clears the entire URL cache except for any WebDAV URLs that are currently locked. If the optional url parameter is provided, the function removes the file corresponding to the specified URL (unless it is a WebDAV URL that is currently locked). The url parameter must be included as the remote URL reference and not the actual file name within the local URL cache.
http_cache_flush returns one (1) on success. If the optional url parameter is provided but does not correspond to any file in the URL cache, http_cache_flush returns a zero (0).
The following example removes all files from the URL cache and stores the return value in the $ret variable:
$ret = http_cache_flush()
The following example removes the cached file for the URL http://www.company.com/files/plan.ent and stores the return value in the $ret variable:
$ret = http_cache_flush("http://www.company.com/files/plan.ent")
Related Topics
Managing the URL cache