©
This document usesPHP Chinese website manualRelease
| 说明 | 基于磁盘的缓冲管理器 |
|---|---|
| 状态 | 扩展(E) |
| 模块名 | disk_cache_module |
| 源文件 | mod_disk_cache.c |
mod_disk_cacheimplements a disk based storage manager. It is primarily of use in conjunctionmod_cache.
Content is stored in and retrieved from the cache using URI based keys. Content with access protection is not cached.
htcachecleancan be used to maintain the cache size at a maximum level.
mod_disk_cacherequires the services ofmod_cache.
| 说明 | The number of characters in subdirectory names |
|---|---|
| 语法 | CacheDirLengthlength |
| 默认值 | CacheDirLength 2 |
| 作用域 | server config, virtual host |
| 状态 | 扩展(E) |
| 模块 | mod_disk_cache |
CacheDirLengthdirective sets the number of characters for each subdirectory name in the cache hierarchy.
The result ofCacheDirLevels*CacheDirLengthmust not be higher than 20.
CacheDirLength 4
| 说明 | The number of levels of subdirectories in the cache. |
|---|---|
| 语法 | CacheDirLevelslevels |
| 默认值 | CacheDirLevels 3 |
| 作用域 | server config, virtual host |
| 状态 | 扩展(E) |
| 模块 | mod_disk_cache |
CacheDirLevelsdirective sets the number of subdirectory levels in the cache. Cached data will be saved this many directory levels below theCacheRootdirectory.
The result ofCacheDirLevels*CacheDirLengthmust not be higher than 20.
CacheDirLevels 5
| 说明 | The maximum size (in bytes) of a document to be placed in the cache |
|---|---|
| 语法 | CacheMaxFileSizebytes |
| 默认值 | CacheMaxFileSize 1000000 |
| 作用域 | server config, virtual host |
| 状态 | 扩展(E) |
| 模块 | mod_disk_cache |
CacheMaxFileSizedirective 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 |
|---|---|
| 语法 | CacheMinFileSizebytes |
| 默认值 | CacheMinFileSize 1 |
| 作用域 | server config, virtual host |
| 状态 | 扩展(E) |
| 模块 | mod_disk_cache |
CacheMinFileSizedirective 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 |
|---|---|
| 语法 | CacheRootdirectory |
| 作用域 | server config, virtual host |
| 状态 | 扩展(E) |
| 模块 | mod_disk_cache |
CacheRootdirective defines the name of the directory on the disk to contain cache files. If themod_disk_cachemodule has been loaded or compiled in to the Apache server, this directivemustbe defined. Failing to provide a value forCacheRootwill result in a configuration file processing error. TheCacheDirLevels和CacheDirLengthdirectives define the structure of the directories under the specified root directory.
CacheRoot c:/cacheroot