Adds data to the cache signature.

This viper method also supports the extension viper syntax.

Syntax

Smartsite SXML CopyCode image Copy Code
this.key.add(string data)
this.key.add(string name, any value)

Extension Viper Syntax

Smartsite SXML CopyCode image Copy Code
page.<id>.key.add(string data)
page.<id>.key.add(string name, any value)

Parameters

Name Data Type Description
data String The data.
name String The name.
value Any The value.

Return Value

None.

Used in

Macro Description
CacheFile Implements file based caching on the given page output.

Expand image Example

SXML