mod_disk_cache
Content cache keyed to URIs
Experimental
mod_disk_cache.c
disk_cache_module

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

mod_disk_cache implements a disk based storage manager for use with mod_proxy.

Content stored and retrived keyed to the URL. Content with access protections is not cached.

mod_disk_cache requires the services of mod_cache.

CacheRoot
The directory to store cache files
CacheRoot directory
none
server config

The CacheRoot directive defines the name of the directory on the disk to contain cache files. What is happening if not set ?

CacheRoot c:/cacheroot
CacheSize
The maximum amount of disk space that will be used by the cache in KBytes
CacheSize KBytes
CacheSize 1000000
server config

The MCacheSize 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.

MCacheSize 5000000
CacheGcInterval
The interval between garbage collections
CacheGcInterval hours
server config
CacheGcInterval 24

The CacheGcInterval directive is currently not implemented.

CacheDirLevels
The number of levels of subdirectories in the cache
CacheDirLevels levels
CacheDirLevels 3
server config

The CacheDirLevels directive sets the number of subdirectory levels in the cache. Cached data will be saved this many directory levels below CacheRoot

CacheDirLevels*CacheDirLength value must not be higher than 20.

CacheDirLevels 5
CacheDirLength
The number of characters in subdirectory names
CacheDirLength length
CacheDirLength 2
server config

The CacheDirLength directive sets the number of characters for each subdirectory in the cache

CacheDirLevels*CacheDirLength value must not be higher than 20.

CacheDirLength 4
CacheExpiryCheck
On if cache observes Expires date when seeking files
CacheExpiryCheck binary
CacheExpiryCheck ?
server config
CacheExpiryCheck On

The CacheExpiryCheck directive is currently not implemented.

CacheMinFileSize
The minimum size (in bytes) of a file to be placed in the cache
CacheMinFileSize bytes
CacheMinFileSize 1
server config

The CacheMinFileSize directive sets the minimum size in bytes of a file to be cached.

CacheMinFileSize 64
CacheMaxFileSize
The maximum size (in bytes) of a file to be placed in the cache
CacheMaxFileSize bytes
CacheMaxFileSize 1000000
server config

The CacheMaxFileSize directive sets the maximum size in bytes of a file to be cached.

CacheMaxFileSize 64000
CacheTimeMargin
The minimum time margin to cache a document
CacheTimeMargin ?
CacheTimeMargin ?
server config
CacheTimeMargin
CacheGcDaily
The time of day for garbage collection (24 hour clock)
CacheGcDaily time
CacheGcDaily ?
server config
CacheGcDaily

The CacheGcDaily directive is currently not implemented.

CacheGcUnused
The time in hours to retain unused file that match a url
CacheGcUnused hours
CacheGcUnused ?
server config
CacheGcUnused

The CacheGcUnused directive is currently not implemented.

CacheGcClean
The time in hours to retain unchanged files that match a url
CacheGcClean hours
CacheGcClean ?
server config
CacheGcClean

The CacheGcClean directive is currently not implemented.

CacheGcMemUsage
The maximum kilobytes of memory used for garbage collection
CacheGcMemUsage KBytes
CacheGcMemUsage ?
server config
CacheGcMemUsage

The CacheGcMemUsage directive is currently not implemented.