mod_mem_cache
mod_mem_cache overview
This module requires the service of mod_cache.
It acts as a supporting module for mod_cache and implements memory-based storage engine.
mod_mem_cache is most useful when used to cache locally
generated content or to cache backend server content for mod_proxy
configured as reverse proxy ProxyPass.
To enable memory-based storage engine for mod_cache use this minimum configuration:
CacheEnable mem /some_url
# or via env
SetEnv cache-enable mem
See CacheEnable directive
Content is stored in and retrieved from the cache using URI based keys.
See also
mod_mem_cache directives
Warning!
Directives
MCacheMaxObjectCount
MCacheMaxStreamingBuffer
MCacheRemovalAlgorithm
MCacheSize
are not supported!
MCacheMaxObjectSize
| Description: |
The maximum size in bytes of a document allowed in the cache |
| Syntax: |
MCacheMaxObjectSize bytes |
| Default: |
MCacheMaxObjectSize 10000000 (10 Mb) |
| Context: |
server config |
| Module: |
mod_mem_cache |
The MCacheMaxObjectSize directive sets the maximum allowable size, in bytes, of a document for it to be considered cacheable.
Example:
MCacheMaxObjectSize 200000
MCacheMinObjectSize
| Description: |
The minimum size in bytes of a document allowed in the cache |
| Syntax: |
MCacheMinObjectSize bytes |
| Default: |
MCacheMinObjectSize 0 |
| Context: |
server config |
| Module: |
mod_mem_cache |
The MCacheMaxObjectSize directive sets the minimum allowable size, in bytes, of a document for it to be considered cacheable.
Example:
MCacheMinObjectSize 1000