Changes with Apache 2.3.0
[ When backported to 2.2.x, remove entry from this file ]
+ *) mod_substitute: The default is now flattening the buckets after
+ each substitution. The newly added 'q' flag allows for the
+ quicker, more efficient bucket-splitting if the user so
+ desires. [Jim Jagielski]
+
*) Added 'disablereuse' option for ProxyPass which, essentially,
disables connection pooling for the backend servers.
[Jim Jagielski]
<directivesynopsis>
<name>Substitute</name>
<description>Pattern to filter the response content</description>
-<syntax>Substitute <var>s/pattern/substitution/[inf]</var></syntax>
+<syntax>Substitute <var>s/pattern/substitution/[infq]</var></syntax>
<contextlist><context>directory</context>
<context>.htaccess</context></contextlist>
<override>FileInfo</override>
<dt><code>f</code></dt>
<dd>The <code>f</code> flag causes mod_substitute to flatten the
result of a substitution allowing for later substitutions to
- take place on the boundary of this one.</dd>
+ take place on the boundary of this one. This is the default.</dd>
+ <dt><code>q</code></dt>
+ <dd>The <code>q</code> flag causes mod_substitute to not
+ flatten the buckets after each substitution. This can
+ result in much faster response and a decrease in memory
+ utilization, but should only be used if there is no possibility
+ that the result of one substitution will ever match a pattern
+ or regex of a subsequent one.</dd>
</dl>
<example><title>Example</title>
subst_pattern_t *nscript;
int is_pattern = 0;
int ignore_case = 0;
- int flatten = 0;
+ int flatten = 1;
ap_regex_t *r = NULL;
if (apr_tolower(*line) != 's') {
is_pattern = 1;
else if (delim == 'f')
flatten = 1;
+ else if (delim == 'q')
+ flatten = 0;
else
- return "Bad Substitute flag, only s///[inf] are supported";
+ return "Bad Substitute flag, only s///[infq] are supported";
flags++;
}