Cache of App

To use the network effectively, rather than downloading the developed application program from the distribution server every time, cache technique is used.

Types of Caches

Types of the supported caches are as follows.

Type of Cache

Description

none

The cache feature is not used.

dynamic

The file is reloaded only when it is updated on the server.

If the file is not updated on the server, the local cache file is reused.

session

When the app is running, the file is fetched from the server and only the local cache file is used until the app is closed.

(If the file on the server is the same as the local cache file during app execution, the cached file is reused.)

static

Once a file is downloaded from the server, the local cache file is used even when the app is restarted.

(However, if the version information of the service group specified in the Type Definition changes, the file is reloaded.)

Notes for WRE Execution

Notes for Execution in Nexacro Studio

Differences in cachelevel application depending on the component or object.

Cache Application Method

The cache setting can be modified using our tool and will be saved in the TypeDefinition file, as shown in the below picture presenting the TypeDefinition editor.

Callout

Description

1

Cache is only applied to the service group registered here

2

You can see here that a cache is applied here to all files in the directory called “./Base/”

3

Select the type of a cache

4

When the cache type is set to "static," you can download files again by re-setting the version of the service group.

nexacro.getEnvironment().services["Base"].cachelevel = "none";