Commit e845e379 authored by Brian Pane's avatar Brian Pane
Browse files

Optimization: skip cache setup in location_walk() if the vhost

config contains no <Location> blocks


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95044 13f79535-47bb-0310-9956-ffa450edef68
parent a66e404a
Loading
Loading
Loading
Loading
+2 −2
Changes for server/request.c: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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 <Locations > to parse in this vhost.
     * We won't destroy the cache, just in case _this_ redirect is later
     * redirected again to a vhost with <Location > 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