Lingo Dictionary > A-C > cacheDocVerify() |  |

cacheDocVerify()

Syntax

    cacheDocVerify #setting
    cacheDocVerify()

Description

Function; sets`` how often the contents of a page on the Internet are refreshed with information from the projector's cache. Possible values are `#once (`default`)` and `#always`.

Specifying`#once` tells a movie to get a file from the Internet once and then use the file from the cache without looking for an updated version on the Internet.

Specifying `#always` tells a movie to try to get an updated version of the file each time the movie calls a URL.

The form `cacheDocVerify()` returns the current setting of the cache.

The `cacheDocVerify` function is valid only for movies running in Director or as projectors. This function is not valid for Shockwave movies because they use the network settings of the browser in which they run.

    on resetCache
    	current = cacheDocVerify()
    	if current = #once then
    		alert "Turning cache verification on"
    		cacheDocVerify #always
    	end if
    end

See also

`cacheSize()`, `clearCache`