]> granicus.if.org Git - apache/commitdiff
Rename CacheMaxStreamingBuffer to MCacheMaxStreamingBuffer and move it
authorBill Stoddard <stoddard@apache.org>
Wed, 18 Dec 2002 22:12:37 +0000 (22:12 +0000)
committerBill Stoddard <stoddard@apache.org>
Wed, 18 Dec 2002 22:12:37 +0000 (22:12 +0000)
out of mod_cache and into mod_mem_cache. Note default buffer size of
the lesser of 100000 or MCacheMaxObjectSize

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98029 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_cache.xml
docs/manual/mod/mod_mem_cache.xml

index 9ba8a4ee4e6a4edf5cba2bbda5950237a3755890..00bdfd6e08c8b37eaec7eb0610c3668e5cfa6b7d 100644 (file)
@@ -63,6 +63,7 @@
         <directive module="mod_mem_cache">MCacheMinObjectSize</directive>
         <directive module="mod_mem_cache">MCacheMaxObjectSize</directive>
         <directive module="mod_mem_cache">MCacheRemovalAlgorithm</directive>
+        <directive module="mod_mem_cache">MCacheMaxStreamingBuffer</directive>
       </directivelist>
     </related>
 </section>
@@ -313,46 +314,4 @@ will complete caching the file even if the request is cancelled.</description>
 </usage>
 </directivesynopsis>
 
-<directivesynopsis>
-<name>CacheMaxStreamingBuffer</name>
-<description>Maximum amount of a streamed response to buffer in memory
-before declaring the response uncacheable</description>
-<syntax>CacheMaxStreamingBuffer <var>size_in_bytes</var></syntax>
-<default>CacheMaxStreamingBuffer 0</default>
-<contextlist><context>server config</context><context>virtual host</context>
-</contextlist>
-
-<usage>
-    <p>The <directive>CacheMaxStreamingBuffer</directive> directive
-    specifies the maximum number of bytes of a streamed response to
-    buffer before deciding that the response is too big to cache.
-    A streamed response is one in which the entire content is not
-    immediately available and in which the <code>Content-Length</code>
-    may not be known. Sources of streaming responses include proxied
-    responses and the output of CGI scripts. By default, a streamed
-    response will <em>not</em> be cached unless it has a
-    <code>Content-Length</code> header. The reason for this is to
-    avoid using a large amount of memory to buffer a partial response
-    that might end up being too large to fit in the cache.
-    The <directive>CacheMaxStreamingBuffer</directive> directive allows
-    buffering of streamed responses that don't contain a
-    <code>Content-Length</code> up to the specified maximum amount of
-    space. If the maximum buffer space is reached, the buffered
-    content is discarded and the attempt to cache is abandoned.</p>
-
-    <note><title>Note:</title>
-      <p>Using a nonzero value for <directive
-      >CacheMaxStreamingBuffer</directive> will not delay the transmission
-      of the response to the client.  As soon as <module>mod_cache</module>
-      copies a block of streamed content into a buffer, it sends the block
-      on to the next output filter for delivery to the client.</p>
-    </note>
-
-    <example>
-      # Enable caching of streamed responses up to 64KB:<br />
-      CacheMaxStreamingBuffer 65536
-    </example>
-</usage>
-</directivesynopsis>
-
 </modulesynopsis>
index 03ddf71f2f3e3aed369883062eef115052bd140e..0405274289add9595abb03b0f273f576856ad4e1 100644 (file)
@@ -158,4 +158,46 @@ cache</description>
 </usage>
 </directivesynopsis>
 
+<directivesynopsis>
+<name>MCacheMaxStreamingBuffer</name>
+<description>Maximum amount of a streamed response to buffer in memory
+before declaring the response uncacheable</description>
+<syntax>MCacheMaxStreamingBuffer <var>size_in_bytes</var></syntax>
+<default>MCacheMaxStreamingBuffer the smaller of 100000 or MCacheMaxObjectSize</default>
+<contextlist><context>server config</context>
+</contextlist>
+
+<usage>
+    <p>The <directive>MCacheMaxStreamingBuffer</directive> directive
+    specifies the maximum number of bytes of a streamed response to
+    buffer before deciding that the response is too big to cache.
+    A streamed response is one in which the entire content is not
+    immediately available and in which the <code>Content-Length</code>
+    may not be known. Sources of streaming responses include proxied
+    responses and the output of CGI scripts. By default, a streamed
+    response will <em>not</em> be cached unless it has a
+    <code>Content-Length</code> header. The reason for this is to
+    avoid using a large amount of memory to buffer a partial response
+    that might end up being too large to fit in the cache.
+    The <directive>MCacheMaxStreamingBuffer</directive> directive allows
+    buffering of streamed responses that don't contain a
+    <code>Content-Length</code> up to the specified maximum amount of
+    space. If the maximum buffer space is reached, the buffered
+    content is discarded and the attempt to cache is abandoned.</p>
+
+    <note><title>Note:</title>
+      <p>Using a nonzero value for <directive>MCacheMaxStreamingBuffer</directive> 
+      will not delay the transmission of the response to the client.
+      As soon as <module>mod_mem_cache</module> copies a block of streamed
+      content into a buffer, it sends the block on to the next output
+      filter for delivery to the client.</p>
+    </note>
+
+    <example>
+      # Enable caching of streamed responses up to 64KB:<br />
+      MCacheMaxStreamingBuffer 65536
+    </example>
+</usage>
+</directivesynopsis>
+
 </modulesynopsis>