<-
Apache > HTTP服务器 > 文档 > V2.0 > 模块

Apache模块 mod_disk_cache

说明Content cache storage manager keyed to URIs
状态Experimental
模块名disk_cache_module
源文件mod_disk_cache.c

概述

This module is experimental. Documentation is still under development...

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.

top

CacheDirLength 指令

说明The number of characters in subdirectory names
语法CacheDirLength length
默认值CacheDirLength 2
作用域server config, virtual host
状态Experimental
模块mod_disk_cache

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

top

CacheDirLevels 指令

说明The number of levels of subdirectories in the cache.
语法CacheDirLevels levels
默认值CacheDirLevels 3
作用域server config, virtual host
状态Experimental
模块mod_disk_cache

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

top

CacheExpiryCheck 指令

说明Indicates if the cache observes Expires dates when seeking files
语法CacheExpiryCheck On|Off
默认值CacheExpiryCheck On
作用域server config, virtual host
状态Experimental
模块mod_disk_cache

More detail will be added here, when the function is implemented.

CacheExpiryCheck Off

The CacheExpiryCheck directive is currently not implemented.
top

CacheGcClean 指令

说明The time to retain unchanged cached files that match a URL
语法CacheGcClean hours url-string
默认值CacheGcClean ?
作用域server config, virtual host
状态Experimental
模块mod_disk_cache

More detail will be added here, when the function is implemented.

CacheGcClean 12 /daily_scripts

The CacheGcClean directive is currently not implemented.
top

CacheGcDaily 指令

说明The recurring time each day for garbage collection to be run. (24 hour clock)
语法CacheGcDaily time
默认值CacheGcDaily ?
作用域server config, virtual host
状态Experimental
模块mod_disk_cache

More detail will be added here, when the function is implemented.

CacheGcDaily 23:59

The CacheGcDaily directive is currently not implemented.
top

CacheGcInterval 指令

说明The interval between garbage collection attempts.
语法CacheGcInterval hours
作用域server config, virtual host
状态Experimental
模块mod_disk_cache

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

The CacheGcInterval directive is currently not implemented.
top

CacheGcMemUsage 指令

说明The maximum kilobytes of memory used for garbage collection
语法CacheGcMemUsage KBytes
默认值CacheGcMemUsage ?
作用域server config, virtual host
状态Experimental
模块mod_disk_cache

More detail will be added here, when the function is implemented.

CacheGcMemUsage 16

The CacheGcMemUsage directive is currently not implemented.
top

CacheGcUnused 指令

说明The time to retain unreferenced cached files that match a URL.
语法CacheGcUnused hours url-string
默认值CacheGcUnused ?
作用域server config, virtual host
状态Experimental
模块mod_disk_cache

More detail will be added here, when the function is implemented.

CacheGcUnused 12 /local_images

The CacheGcUnused directive is currently not implemented.
top

CacheMaxFileSize 指令

说明The maximum size (in bytes) of a document to be placed in the cache
语法CacheMaxFileSize bytes
默认值CacheMaxFileSize 1000000
作用域server config, virtual host
状态Experimental
模块mod_disk_cache

CacheMaxFileSize directive sets the maximum size, in bytes, for a document to be considered for storage in the cache.

CacheMaxFileSize 64000

top

CacheMinFileSize 指令

说明The minimum size (in bytes) of a document to be placed in the cache
语法CacheMinFileSize bytes
默认值CacheMinFileSize 1
作用域server config, virtual host
状态Experimental
模块mod_disk_cache

CacheMinFileSize directive sets the minimum size, in bytes, for a document to be considered for storage in the cache.

CacheMinFileSize 64

top

CacheRoot 指令

说明The directory root under which cache files are stored
语法CacheRoot directory
作用域server config, virtual host
状态Experimental
模块mod_disk_cache

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 CacheDirLevelsCacheDirLength directives define the structure of the directories under the specified root directory.

CacheRoot c:/cacheroot

top

CacheSize 指令

说明The maximum amount of disk space that will be used by the cache in KBytes
语法CacheSize KBytes
默认值CacheSize 1000000
作用域server config, virtual host
状态Experimental
模块mod_disk_cache

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

top

CacheTimeMargin 指令

说明The minimum time margin to cache a document
语法CacheTimeMargin ?
默认值CacheTimeMargin ?
作用域server config, virtual host
状态Experimental
模块mod_disk_cache

More detail will be added here, when the function is implemented.

CacheTimeMargin X

The CacheTimeMargin directive is currently not implemented.