Configures the in-memory cache.
The following table describes subelements for the FILECACHE element.
Table 2–21 FILECACHE subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
The following table describes attributes for the FILEACHE element.
Table 2–22 FILECACHE attributes
Attribute |
Default |
Description |
---|---|---|
enabled |
true |
Select this option, if not already selected. |
transmitfile |
false |
When you enable Transmit File, the server caches open file descriptors for files in the file cache, rather than the file contents, and PR_TransmitFile is used to send the file contents to a client. When Transmit File is enabled, the distinction normally made by the file cache between small, medium, and large files no longer applies, because only the open file descriptor is being cached. |
contentcache |
true |
Enables caching file content. |
tempdir |
Specifies the directory to store temporary files. |
|
maxage |
30 |
The maximum age in seconds of a valid cache entry. This setting controls how long cached information will continue to be used once the file is cached. An entry older than MaxAge is replaced by a new entry for the same file, if the same file is referenced through the cache. |
mediumfilesizelimit |
537600 |
Size in bytes of the largest (non-small) file that is considered to be medium size. The contents of medium files are cached by mapping the file into virtual memory (currently only on Unix platforms). The contents of "large" files (larger than "medium") are not cached, although information about large files is cached. |
mediumfilespace |
10485760 |
Specifies how much virtual memory will be used to map all medium sized files. |
smallfilesizelimit |
2048 |
Size in bytes of the largest file that is considered to be "small". The contents of small files are cached by allocating heap space and reading the file into it. |
smallfilespace |
1048576 |
Specifies how much heap space will be used for the cache, including heap space used to cache small files. |
maxfiles |
1024 |
The maximum number of files that may be in the cache at once. |
hashinitsize |
0 |