Saves certain people a bit of time figuring out why their caching
doesn't work...
* modules/cache/mod_cache.c
(add_cache_enable): Throw an error when a provider starting with
a '/' is encountered. The user probably switched arguments.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@151232
13f79535-47bb-0310-9956-
ffa450edef68
cache_server_conf *conf;
struct cache_enable *new;
+ if (*type == '/') {
+ return apr_psprintf(parms->pool,
+ "provider (%s) starts with a '/'. Are url and provider switched?",
+ type);
+ }
+
conf =
(cache_server_conf *)ap_get_module_config(parms->server->module_config,
&cache_module);