diff --git a/include/ap_socache.h b/include/ap_socache.h index b037c0a6ee..8d0492e34d 100644 --- a/include/ap_socache.h +++ b/include/ap_socache.h @@ -160,5 +160,8 @@ typedef struct ap_socache_provider_t { /** The provider version used to register socache providers. */ #define AP_SOCACHE_PROVIDER_VERSION "0" +/** Default provider name. */ +#define AP_SOCACHE_DEFAULT_PROVIDER "default" + #endif /* AP_SOCACHE_H */ /** @} */ 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 = {