Name

cacheloc — provide the expected location of the cache files for specified set

Synopsis

use Wacs;
scalar cacheloc(setno,  
 prefix,  
 filetype); 
scalar setno;
scalar prefix;
scalar filetype;
 

Parameters

parameterdescription
setnoThe set number
prefixThe pathname to prefix on the destination to be checked
filetype

The type of file to look for - can be a file type like jpg, or one of /, : or ?. The / checks for a directory, : checks for a directory (like / ) but only returns a relative rather than absolute reply (suitable as a web URL component), and ? returns what it should be with no actual extistence test performed. Alternatively it can be a file type such as wmv or jpg or similar for a content file.

Summary

The cacheloc function reports on the presence of a cache file of the type specified. This also can be a directory if the specified file type is "/", ":" or "?".

Availability

The function cacheloc was introduced in Wacs 0.9.1 and is not available in earlier versions. It is available in both Perl and Php.