datamaxstale

datamaxstale

Default Value: 0 seconds

Tells the platform the maximum acceptable staleness, in seconds, of expired cached data documents.

Example

<?xml version="1.0"?>
<vxml version="2.0">

<property name="datamaxage" value="150s"/>
<property name="datamaxstale" value="25s"/>

<form>
  <data name="domstuff" src="datatag.xml"/>
  <block>
    Hello <value expr="domstuff.documentElement.firstChild.toString()"/>.
  </block>
</form>
</vxml>

Explanation

From this example, the “datamaxage” value is set to 150 seconds and the “datamaxstale” value is set to 25 seconds. This sets a global property that all data documents referenced within the application have a maxage value of 150 seconds and a maxstale value of 25 seconds. So, since the file “datatag.xml” is inside of a tag, it would have a maxage value of 150 seconds and a maxstale value of 25 seconds because of the “datamaxage” and “datamaxstale” properties.

Notes

None

Last updated