diff options
author | Joe Orton <jorton@apache.org> | 2008-12-09 15:52:59 +0100 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2008-12-09 15:52:59 +0100 |
commit | b078f2374e459a25742a44e43fedd0daabc49c15 (patch) | |
tree | 1deadb58bde2eb8704cfe210bbb79662f39c808e /modules/cache | |
parent | Improve mod_ssl's environment variable extraction to correctly handle (diff) | |
download | apache2-b078f2374e459a25742a44e43fedd0daabc49c15.tar.xz apache2-b078f2374e459a25742a44e43fedd0daabc49c15.zip |
* include/ap_socache.h: Define AP_SOCACHE_DEFAULT_PROVIDER as a
default provider name, to allow consumers to use a default provider
if not configured otherwise.
* modules/cache/mod_socache_shmcb.c (register_hooks): Register shmcb
as the default provider.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@724723 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/cache')
-rw-r--r-- | modules/cache/mod_socache_shmcb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/cache/mod_socache_shmcb.c b/modules/cache/mod_socache_shmcb.c index 30f5402840..a973f2d492 100644 --- a/modules/cache/mod_socache_shmcb.c +++ b/modules/cache/mod_socache_shmcb.c @@ -857,6 +857,12 @@ static void register_hooks(apr_pool_t *p) ap_register_provider(p, AP_SOCACHE_PROVIDER_GROUP, "shmcb", AP_SOCACHE_PROVIDER_VERSION, &socache_shmcb); + + /* Also register shmcb under the default provider name. */ + ap_register_provider(p, AP_SOCACHE_PROVIDER_GROUP, + AP_SOCACHE_DEFAULT_PROVIDER, + AP_SOCACHE_PROVIDER_VERSION, + &socache_shmcb); } module AP_MODULE_DECLARE_DATA socache_shmcb_module = { |