Apache HTTP服务器 2.0版本
说明: | Content cache storage manager keyed to URIs |
---|---|
状态: | Experimental |
模块名: | disk_cache_module |
源文件: | mod_disk_cache.c |
mod_disk_cache
implements a disk based storage
manager. It is primarily of use in conjunction with
mod_proxy
.
Content is stored in and retrieved from the cache using URI based keys. Content with access protection is not cached.
mod_disk_cache
requires the services of
mod_cache
.
说明: | The number of characters in subdirectory names |
---|---|
语法: | CacheDirLength length |
默认值: | CacheDirLength 2 |
上下文: | 服务器配置, 虚拟主机 |
状态: | Experimental |
模块: | mod_disk_cache |
The CacheDirLength
directive sets the number
of characters for each subdirectory name in the cache hierarchy.
The result of CacheDirLevels
* CacheDirLength
must not be higher than 20.
CacheDirLength 4
说明: | The number of levels of subdirectories in the cache. |
---|---|
语法: | CacheDirLevels levels |
默认值: | CacheDirLevels 3 |
上下文: | 服务器配置, 虚拟主机 |
状态: | Experimental |
模块: | mod_disk_cache |
The CacheDirLevels
directive sets the number
of subdirectory levels in the cache. Cached data will be saved this
many directory levels below the CacheRoot
directory.
The result of CacheDirLevels
*
CacheDirLength
must
not be higher than 20.
CacheDirLevels 5
说明: | Indicates if the cache observes Expires dates when seeking files |
---|---|
语法: | CacheExpiryCheck On|Off |
默认值: | CacheExpiryCheck On |
上下文: | 服务器配置, 虚拟主机 |
状态: | Experimental |
模块: | mod_disk_cache |
More detail will be added here, when the function is implemented.
CacheExpiryCheck Off
CacheExpiryCheck
directive is currently
not implemented.
说明: | The time to retain unchanged cached files that match a URL |
---|---|
语法: | CacheGcClean hours url-string |
默认值: | CacheGcClean ? |
上下文: | 服务器配置, 虚拟主机 |
状态: | Experimental |
模块: | mod_disk_cache |
More detail will be added here, when the function is implemented.
CacheGcClean 12 /daily_scripts
CacheGcClean
directive is currently
not implemented.
说明: | The recurring time each day for garbage collection to be run. (24 hour clock) |
---|---|
语法: | CacheGcDaily time |
默认值: | CacheGcDaily ? |
上下文: | 服务器配置, 虚拟主机 |
状态: | Experimental |
模块: | mod_disk_cache |
More detail will be added here, when the function is implemented.
CacheGcDaily 23:59
CacheGcDaily
directive is currently
not implemented.
说明: | The interval between garbage collection attempts. |
---|---|
语法: | CacheGcInterval hours |
上下文: | 服务器配置, 虚拟主机 |
状态: | Experimental |
模块: | mod_disk_cache |
The CacheGcInterval
directive specifies the
number of hours to wait between attempts to free up disk space.
More detail will be added here, when the function is implemented.
CacheGcInterval 24
CacheGcInterval
directive is currently
not implemented.
说明: | The maximum kilobytes of memory used for garbage collection |
---|---|
语法: | CacheGcMemUsage KBytes |
默认值: | CacheGcMemUsage ? |
上下文: | 服务器配置, 虚拟主机 |
状态: | Experimental |
模块: | mod_disk_cache |
More detail will be added here, when the function is implemented.
CacheGcMemUsage 16
CacheGcMemUsage
directive is currently
not implemented.
说明: | The time to retain unreferenced cached files that match a URL. |
---|---|
语法: | CacheGcUnused hours url-string |
默认值: | CacheGcUnused ? |
上下文: | 服务器配置, 虚拟主机 |
状态: | Experimental |
模块: | mod_disk_cache |
More detail will be added here, when the function is implemented.
CacheGcUnused 12 /local_images
CacheGcUnused
directive is currently
not implemented.
说明: | The maximum size (in bytes) of a document to be placed in the cache |
---|---|
语法: | CacheMaxFileSize bytes |
默认值: | CacheMaxFileSize 1000000 |
上下文: | 服务器配置, 虚拟主机 |
状态: | Experimental |
模块: | mod_disk_cache |
The CacheMaxFileSize
directive sets the
maximum size, in bytes, for a document to be considered for storage in
the cache.
CacheMaxFileSize 64000
说明: | The minimum size (in bytes) of a document to be placed in the cache |
---|---|
语法: | CacheMinFileSize bytes |
默认值: | CacheMinFileSize 1 |
上下文: | 服务器配置, 虚拟主机 |
状态: | Experimental |
模块: | mod_disk_cache |
The CacheMinFileSize
directive sets the
minimum size, in bytes, for a document to be considered for storage
in the cache.
CacheMinFileSize 64
说明: | The directory root under which cache files are stored |
---|---|
语法: | CacheRoot directory |
上下文: | 服务器配置, 虚拟主机 |
状态: | Experimental |
模块: | mod_disk_cache |
The CacheRoot
directive defines the name of
the directory on the disk to contain cache files. If the mod_disk_cache
module has been loaded or compiled in to the
Apache server, this directive must be defined. Failing to
provide a value for CacheRoot
will result in
a configuration file processing error. The CacheDirLevels
and CacheDirLength
directives define
the structure of the directories under the specified root directory.
CacheRoot c:/cacheroot
说明: | The maximum amount of disk space that will be used by the cache in KBytes |
---|---|
语法: | CacheSize KBytes |
默认值: | CacheSize 1000000 |
上下文: | 服务器配置, 虚拟主机 |
状态: | Experimental |
模块: | mod_disk_cache |
The CacheSize
directive sets the desired
disk space usage of the cache, in KBytes (1024-byte units). This
directive does not put a hard limit on the size of the cache. The
garbage collector will delete files until the usage is at or below the
settings. Always use a value that is lower than the available disk
space.
CacheSize 5000000
说明: | The minimum time margin to cache a document |
---|---|
语法: | CacheTimeMargin ? |
默认值: | CacheTimeMargin ? |
上下文: | 服务器配置, 虚拟主机 |
状态: | Experimental |
模块: | mod_disk_cache |
More detail will be added here, when the function is implemented.
CacheTimeMargin X
CacheTimeMargin
directive is currently
not implemented.