Error getting tags :
error 404Error getting tags :
error 404 cachedURLs | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
cachedURLs
Basics
Expander triangle
Type
Function
Syntax

the cachedURLs

cachedURLs()

Introduced
1.0
Changed
1.1.1
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
Network
Summary
Returns a list of the URLs that have been downloaded and copied to the cache using the loadcommand.
Examples

the cachedURLs
if myURL is not among the lines of the cachedURLs then load myURL

Additional Comments
Expander triangle

Use the cachedURLs function to determine which files have been downloaded and are currently in the cache. A cached URL can be accessed more quickly than one that is not cached.

Value:

The cachedURLs function returns a list of currently loaded URLs, one per line.

Comments:

The cachedURLs function includes all URLs that you have successfully loaded with the load command. If an unsuccessful attempt has been made to load a URL, it does not appear in the cachedURLs. Only URLs whose URLStatus is "cached" appear in the cachedURLs.

Cached files consume memory. To release this memory after you are finished with a URL, use the unload command to remove it from the cache. You can use this handler to unload all URLs:

on unloadAll

repeat for each line thisURL in the cachedURLs

unload URL thisURL

end repeat

end unloadAll

Important! The cachedURLsfunction is part of the Internet library. To ensure that the function works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions section of the Standalone Application Settings window, make sure "Internet Library" is selected in the list of script libraries.

Changes to Revolution:

The URLStatus function became part of the Internet library in version 1.1. In previous versions, it was not a library function.

Starting with version 1.1.1, URLs that were not successfully downloaded do not appear in the cachedURLs. In previous versions, all URLs for which the load command was issued appeared in the cachedURLs, even if they were not successfully downloaded.

User Comments
Expander triangle