This sample code has been developed by Streamezzo.
Its purpose is to illustrate how to cache a scene on client.
Current scene is stored in client cache for 5 seconds (5000 milliseconds) and can be accessed instantaneously. Once this delay has expired it will be requested to server again.

"
cacheable="true"
clientCacheTtl="5s"
permanent="false" />
![cdata[>
=0) {
DomApi.setTextString("counter", "Cache expires in "+currentCounter+"s.");
} else {
DomApi.setTextString("counter", "Cache expired.");
DomApi.startNode("change_instructions");
DomApi.setNodeActive("save_counter", false);
DomApi.setNodeActive("clean_counter", true);
}
}
]]>
![cdata[>
" wrap="true" horizAlign="CENTERED" vertAlign="MIDDLE" />
| Attachment | Size |
|---|---|
| Basic_client_cache.swz | 3.55 KB |