Apache HTTP Server Version 2.4
Description: | Shared object cache (socache) based storage module for the HTTP caching filter. |
---|---|
Status: | Extension |
Module Identifier: | cache_socache_module |
Source File: | mod_cache_socache.c |
mod_cache_socache
implements a shared object cache
(socache) based storage manager for mod_cache
.
The headers and bodies of cached responses are combined, and stored underneath a single key in the shared object cache. A number of implementations of shared object caches are available to choose from.
Multiple content negotiated responses can be stored concurrently, however the caching of partial content is not yet supported by this module.
# Turn on caching CacheSocache shmcb CacheSocacheMaxSize 102400 <Location "/foo"> CacheEnable socache </Location> # Fall back to the disk cache CacheSocache shmcb CacheSocacheMaxSize 102400 <Location "/foo"> CacheEnable socache CacheEnable disk </Location>
mod_cache_socache
requires the services of
mod_cache
, which must be loaded before
mod_cache_socache
.
Description: | The shared object cache implementation to use |
---|---|
Syntax: | CacheSocache type[:args] |
Context: | server config, virtual host |
Status: | Extension |
Module: | mod_cache_socache |
Compatibility: | Available in Apache 2.4.5 and later |
The CacheSocache
directive defines the name of
the shared object cache implementation to use, followed by optional
arguments for that implementation. A number of
implementations of shared object caches are available to choose
from.
CacheSocache shmcb
Description: | The maximum size (in bytes) of an entry to be placed in the cache |
---|---|
Syntax: | CacheSocacheMaxSize bytes |
Default: | CacheSocacheMaxSize 102400 |
Context: | server config, virtual host, directory, .htaccess |
Status: | Extension |
Module: | mod_cache_socache |