Determines whether a valid cache entry exists in the file cache for given item. The current channel is added to the key dependencies.

Syntax

Smartsite SXML CopyCode image Copy Code
boolean cachefile.isvalid(integer itemNr)
boolean cachefile.isvalid(integer itemNr, datetime expiration)
boolean cachefile.isvalid(integer itemNr, datetime expiration, any[ ] dependencies)
boolean cachefile.isvalid(integer itemNr, any[ ] dependencies)

Parameters

Name Data Type Description
itemNr Integer The item nr.
expiration DateTime The expiration.
dependencies Any[ ] The dependencies.

Return Value

Data Type Description
Boolean True if a valid cache entry is found; otherwise, false.