summaryrefslogtreecommitdiffstats
path: root/modules/cache/mod_cache.h
diff options
context:
space:
mode:
authorColm MacCarthaigh <colm@apache.org>2005-08-23 17:43:23 +0200
committerColm MacCarthaigh <colm@apache.org>2005-08-23 17:43:23 +0200
commitacf227a49242003d921f7c3432a40056fb5c7ce3 (patch)
treed1011022dfdb333a9ef623cc6858e14ffdecbf24 /modules/cache/mod_cache.h
parentremove some unused variables and re-name cache_select_url() to simply (diff)
downloadapache2-acf227a49242003d921f7c3432a40056fb5c7ce3.tar.xz
apache2-acf227a49242003d921f7c3432a40056fb5c7ce3.zip
Enhance CacheEnable/CacheDisable to control caching on a per-protocol, per-host
and per-path basis. Makes Cache(En|Dis)able useful for forward proxy servers. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@239421 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/cache/mod_cache.h')
-rw-r--r--modules/cache/mod_cache.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/cache/mod_cache.h b/modules/cache/mod_cache.h
index 0da7724fcf..9c4f88e475 100644
--- a/modules/cache/mod_cache.h
+++ b/modules/cache/mod_cache.h
@@ -104,14 +104,14 @@
#endif
struct cache_enable {
- const char *url;
+ apr_uri_t url;
const char *type;
- apr_size_t urllen;
+ apr_size_t pathlen;
};
struct cache_disable {
- const char *url;
- apr_size_t urllen;
+ apr_uri_t url;
+ apr_size_t pathlen;
};
/* static information about the local cache */
@@ -257,7 +257,7 @@ CACHE_DECLARE(void) ap_cache_usec2hex(apr_time_t j, char *y);
CACHE_DECLARE(char *) ap_cache_generate_name(apr_pool_t *p, int dirlevels,
int dirlength,
const char *name);
-CACHE_DECLARE(cache_provider_list *)ap_cache_get_providers(request_rec *r, cache_server_conf *conf, const char *url);
+CACHE_DECLARE(cache_provider_list *)ap_cache_get_providers(request_rec *r, cache_server_conf *conf, apr_uri_t uri);
CACHE_DECLARE(int) ap_cache_liststr(apr_pool_t *p, const char *list,
const char *key, char **val);
CACHE_DECLARE(const char *)ap_cache_tokstr(apr_pool_t *p, const char *list, const char **str);