]> granicus.if.org Git - apache/commitdiff
Avoid a call to 'prep_walk_cache' if possible, just as in 'ap_if_walk' and 'ap_locati...
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 20 Mar 2016 21:22:14 +0000 (21:22 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 20 Mar 2016 21:22:14 +0000 (21:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1735906 13f79535-47bb-0310-9956-ffa450edef68

server/request.c

index e96e4f1888d1a7abf06ab2cb1c205df90acf3718..b097e9900725c0b07afaa121255f6d38c1327042 100644 (file)
@@ -1606,9 +1606,6 @@ AP_DECLARE(int) ap_file_walk(request_rec *r)
         return OK;
     }
 
-    cache = prep_walk_cache(AP_NOTE_FILE_WALK, r);
-    cached = (cache->cached != NULL);
-
     /* No tricks here, there are just no <Files > to parse in this context.
      * We won't destroy the cache, just in case _this_ redirect is later
      * redirected again to a context containing the same or similar <Files >.
@@ -1617,6 +1614,9 @@ AP_DECLARE(int) ap_file_walk(request_rec *r)
         return OK;
     }
 
+    cache = prep_walk_cache(AP_NOTE_FILE_WALK, r);
+    cached = (cache->cached != NULL);
+
     /* Get the basename .. and copy for the cache just
      * in case r->filename is munged by another module
      */