Internal Housekeeping of the Virtual Directory

When JADE sends a file to the JadeHttp library, any file that is not to be retained is created as a standard file of type .jpg, .png, or .gif when the jadehttp.ini file Firewall parameter or the JADE mod_ jadehttp module Firewall configuration directive, the Firewall parameter in the [WebOptions] section of the JADE initialization file, and the retain parameter in the JadeWebServiceProvider or WebSession class createVirtualDirectoryFile method are set to true. Files that are to be retained are created as read-only files.

Call the JadeWebServiceProvider or WebSession class deleteVirtualDirectoryFile method to delete virtual directory files (that is, the directory specified by the value of the VirtualDirectory parameter in the jadehttp.ini file or the PhysicalDirectory configuration directive in the JADE mod_ jadehttp module).

By default, JADE initiates a separate thread to clean up files in the virtual directory when JadeHttp is started up if the Firewall parameter in the [Jadehttp Files] section of the JadeHttp initialization file or the Firewall configuration directive in the JADE mod_ jadehttp module is set to true. Every hour this thread removes any standard files of type .jpg, .png, or .gif that are more than 12 hours old, by default. (As the JadeHttp library has no life of its own until a message is received, this thread is initiated only after the first Web browser message is received.)

Alternatively, set the value of the PurgeDirectoryRule parameter in the [application-name] section of the jadehttp.ini file or the PurgeDirectoryRule configuration directive in the JADE mod_ jadehttp module to AllWritable if you want to purge all files in the virtual directory that are not read-only. The default value of Default for this parameter removes any standard files of type .jpg, .png, or .gif that are more than 12 hours old. If you want to specify the length of time since a read‑only file was last modified before it is purged from the defined virtual directory for that application, specify the required value in the PurgeFileAge parameter.