From: Brian Pane Date: Sun, 12 May 2002 03:45:47 +0000 (+0000) Subject: Optimization: skip cache setup in location_walk() if the vhost X-Git-Tag: 2.0.37~430 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6088d4c2e31410069ea19d8e1678ac97983770c;p=apache Optimization: skip cache setup in location_walk() if the vhost config contains no blocks git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95044 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/request.c b/server/request.c index 271b6d57aa..1a6aea9a3d 100644 --- a/server/request.c +++ b/server/request.c @@ -1192,8 +1192,6 @@ AP_DECLARE(int) ap_location_walk(request_rec *r) walk_cache_t *cache; const char *entry_uri; - cache = prep_walk_cache(AP_NOTE_LOCATION_WALK, r); - /* No tricks here, there are no to parse in this vhost. * We won't destroy the cache, just in case _this_ redirect is later * redirected again to a vhost with blocks to optimize. @@ -1202,6 +1200,8 @@ AP_DECLARE(int) ap_location_walk(request_rec *r) return OK; } + cache = prep_walk_cache(AP_NOTE_LOCATION_WALK, r); + /* Location and LocationMatch differ on their behaviour w.r.t. multiple * slashes. Location matches multiple slashes with a single slash, * LocationMatch doesn't. An exception, for backwards brokenness is