]> granicus.if.org Git - apache/commitdiff
Ensure CACHE_OUT gets installed in front of SUBREQ_CORE on subrequsts.
authorBill Stoddard <stoddard@apache.org>
Wed, 27 Mar 2002 21:20:37 +0000 (21:20 +0000)
committerBill Stoddard <stoddard@apache.org>
Wed, 27 Mar 2002 21:20:37 +0000 (21:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94236 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_cache.c

index 964950fd6710cfc59d1f01310bd260ac1affac0c..280341176f5166f94079580bfb62d88634d7ec0c 100644 (file)
@@ -974,9 +974,13 @@ register_hooks(apr_pool_t *p)
     ap_register_output_filter("CACHE_IN", 
                               cache_in_filter, 
                               AP_FTYPE_CONTENT_SET);
+    /* CACHE_OUT must go into the filter chain before SUBREQ_CORE to
+     * handle subrequsts. Decrementing filter type by 1 ensures this 
+     * happens.
+     */
     ap_register_output_filter("CACHE_OUT", 
                               cache_out_filter, 
-                              AP_FTYPE_CONTENT_SET);
+                              AP_FTYPE_CONTENT_SET-1);
     ap_register_output_filter("CACHE_CONDITIONAL", 
                               cache_conditional_filter, 
                               AP_FTYPE_CONTENT_SET);