1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head><!--
4        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5              This file is generated from xml source: DO NOT EDIT
6        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
7      -->
8<title>mod_cache_disk - Apache HTTP サーバ</title>
9<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
10<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
11<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="/style/css/prettify.css" />
12<script src="/style/scripts/prettify.min.js" type="text/javascript">
13</script>
14
15<link href="/images/favicon.ico" rel="shortcut icon" /></head>
16<body>
17<div id="page-header">
18<p class="menu"><a href="/mod/">モジュール</a> | <a href="/mod/directives.html">ディレクティブ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">用語</a> | <a href="/sitemap.html">サイトマップ</a></p>
19<p class="apache">Apache HTTP サーバ バージョン 2.4</p>
20<img alt="" src="/images/feather.gif" /></div>
21<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
22<div id="path">
23<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP サーバ</a> &gt; <a href="http://httpd.apache.org/docs/">ドキュメンテーション</a> &gt; <a href="../">バージョン 2.4</a> &gt; <a href="./">モジュール</a></div>
24<div id="page-content">
25<div id="preamble"><h1>Apache モジュール mod_cache_disk</h1>
26<div class="toplang">
27<p><span>翻訳済み言語: </span><a href="/en/mod/mod_cache_disk.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
28<a href="/fr/mod/mod_cache_disk.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a> |
29<a href="/ja/mod/mod_cache_disk.html" title="Japanese">&nbsp;ja&nbsp;</a> |
30<a href="/ko/mod/mod_cache_disk.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
31</div>
32<div class="outofdate">この日本語訳はすでに古くなっている
33            可能性があります。
34            最近更新された内容を見るには英語版をご覧下さい。
35        </div>
36<table class="module"><tr><th><a href="module-dict.html#Description">説明:</a></th><td>URI をキーにしたコンテンツキャッシュストレージ管理</td></tr>
37<tr><th><a href="module-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
38<tr><th><a href="module-dict.html#ModuleIdentifier">モジュール識別子:</a></th><td>cache_disk_module</td></tr>
39<tr><th><a href="module-dict.html#SourceFile">ソースファイル:</a></th><td>mod_cache_disk.c</td></tr></table>
40<h3>概要</h3>
41
42    <p><code class="module"><a href="/mod/mod_cache_disk.html">mod_cache_disk</a></code> はディスクを使用したストレージ
43    管理機構を実装しています。主に
44    <code class="module"><a href="/mod/mod_cache.html">mod_cache</a></code> と組み合わせて使われます。</p>
45
46    <p>コンテンツのキャッシュへの保存と取得は URI に基づいたキーが使われます。
47    アクセス保護のかけられているコンテンツはキャッシュされません。</p>
48
49    <p>キャッシュの大きさを最大レベルで維持するために
50    <code class="program"><a href="/programs/htcacheclean.html">htcacheclean</a></code> を使うことができます。</p>
51
52    <div class="note"><h3>注:</h3>
53      <p><code class="module"><a href="/mod/mod_cache_disk.html">mod_cache_disk</a></code> は
54      <code class="module"><a href="/mod/mod_cache.html">mod_cache</a></code> を必要とします</p>
55    </div>
56</div>
57<div id="quickview"><h3 class="directives">ディレクティブ</h3>
58<ul id="toc">
59<li><img alt="" src="/images/down.gif" /> <a href="#cachedirlength">CacheDirLength</a></li>
60<li><img alt="" src="/images/down.gif" /> <a href="#cachedirlevels">CacheDirLevels</a></li>
61<li><img alt="" src="/images/down.gif" /> <a href="#cachemaxfilesize">CacheMaxFileSize</a></li>
62<li><img alt="" src="/images/down.gif" /> <a href="#cacheminfilesize">CacheMinFileSize</a></li>
63<li><img alt="" src="/images/down.gif" /> <a href="#cachereadsize">CacheReadSize</a></li>
64<li><img alt="" src="/images/down.gif" /> <a href="#cachereadtime">CacheReadTime</a></li>
65<li><img alt="" src="/images/down.gif" /> <a href="#cacheroot">CacheRoot</a></li>
66</ul>
67<ul class="seealso"><li><a href="#comments_section">コメント</a></li></ul></div>
68
69<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
70<div class="directive-section"><h2><a name="CacheDirLength" id="CacheDirLength">CacheDirLength</a> <a name="cachedirlength" id="cachedirlength">ディレクティブ</a></h2>
71<table class="directive">
72<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>サブディレクトリ名の文字数</td></tr>
73<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheDirLength <var>length</var></code></td></tr>
74<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheDirLength 2</code></td></tr>
75<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr>
76<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
77<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache_disk</td></tr>
78</table>
79    <p><code class="directive">CacheDirLength</code> ディレクティブはキャッシュ
80    階層の各サブディレクトリの文字数を設定します。
81    <code class="directive">CacheDirLevels</code> と組み合わせて設定することで、
82    キャッシュ階層のおおよその構造を決めることができます。</p>
83    <p><code class="directive">CacheDirLength</code> が大きくて
84    <code class="directive">CacheDirLevels</code> が小さい場合、
85    比較的浅い階層になりますが、
86    各階層のサブディレクトリの数は多くなります。</p>
87
88    <div class="note">
89      <p><code class="directive">CacheDirLevels</code>*
90      <code class="directive"><a href="#cachedirlength">CacheDirLength</a></code> の
91      結果は 20 以内でなければなりません。</p>
92    </div>
93
94
95</div>
96<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
97<div class="directive-section"><h2><a name="CacheDirLevels" id="CacheDirLevels">CacheDirLevels</a> <a name="cachedirlevels" id="cachedirlevels">ディレクティブ</a></h2>
98<table class="directive">
99<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>キャッシュのサブディレクトリの深さの数</td></tr>
100<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheDirLevels <var>levels</var></code></td></tr>
101<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheDirLevels 2</code></td></tr>
102<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr>
103<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
104<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache_disk</td></tr>
105</table>
106    <p><code class="directive">CacheDirLevels</code> ディレクティブはキャッシュの
107    サブディレクトリの深さを設定します。キャッシュデータは <code class="directive"><a href="#cacheroot">CacheRoot</a></code> ディレクトリから
108    このディレクトリの深さ分下のディレクトリに保存されます。</p>
109    <p><code class="directive">CacheDirLevels</code> が大きくて
110    <code class="directive">CacheDirLength</code> が小さい場合、
111    比較的深い階層になりますが、
112    各階層のサブディレクトリの数は少なくなります。</p>
113
114    <div class="note">
115      <p><code class="directive">CacheDirLevels</code>*
116      <code class="directive"><a href="#cachedirlength">CacheDirLength</a></code> の
117      結果は 20 以内でなければなりません。</p>
118    </div>
119
120
121</div>
122<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
123<div class="directive-section"><h2><a name="CacheMaxFileSize" id="CacheMaxFileSize">CacheMaxFileSize</a> <a name="cachemaxfilesize" id="cachemaxfilesize">ディレクティブ</a></h2>
124<table class="directive">
125<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>キャッシュに保管されるドキュメントの最大の (バイトでの) サイズ</td></tr>
126<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheMaxFileSize <var>bytes</var></code></td></tr>
127<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheMaxFileSize 1000000</code></td></tr>
128<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr>
129<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
130<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache_disk</td></tr>
131</table>
132    <p><code class="directive">CacheMaxFileSize</code> ディレクティブは、ドキュメントを
133    キャッシュするかどうかを判定する、最大のサイズをバイト数で設定します。</p>
134
135    <div class="example"><p><code>
136      CacheMaxFileSize 64000
137    </code></p></div>
138
139</div>
140<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
141<div class="directive-section"><h2><a name="CacheMinFileSize" id="CacheMinFileSize">CacheMinFileSize</a> <a name="cacheminfilesize" id="cacheminfilesize">ディレクティブ</a></h2>
142<table class="directive">
143<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>キャッシュに保管されるドキュメントの最小限の (バイトでの) 大きさ</td></tr>
144<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheMinFileSize <var>bytes</var></code></td></tr>
145<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheMinFileSize 1</code></td></tr>
146<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr>
147<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
148<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache_disk</td></tr>
149</table>
150    <p><code class="directive">CacheMinFileSize</code> ディレクティブは、ドキュメントを
151    キャッシュするかどうかを判定する、最小のサイズをバイト数で設定します。</p>
152
153    <div class="example"><p><code>
154      CacheMinFileSize 64
155    </code></p></div>
156
157</div>
158<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
159<div class="directive-section"><h2><a name="CacheReadSize" id="CacheReadSize">CacheReadSize</a> <a name="cachereadsize" id="cachereadsize">ディレクティブ</a></h2>
160<table class="directive">
161<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>The minimum size (in bytes) of the document to read and be cached before sending the data downstream</td></tr>
162<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code /></td></tr>
163<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr>
164<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
165<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache_disk</td></tr>
166</table><p>Documentation not yet translated. Please see English version of document.</p>
167</div>
168<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
169<div class="directive-section"><h2><a name="CacheReadTime" id="CacheReadTime">CacheReadTime</a> <a name="cachereadtime" id="cachereadtime">ディレクティブ</a></h2>
170<table class="directive">
171<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>The minimum time (in milliseconds) that should elapse while reading before data is sent downstream</td></tr>
172<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code /></td></tr>
173<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト, ディレクトリ, .htaccess</td></tr>
174<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
175<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache_disk</td></tr>
176</table><p>Documentation not yet translated. Please see English version of document.</p>
177</div>
178<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
179<div class="directive-section"><h2><a name="CacheRoot" id="CacheRoot">CacheRoot</a> <a name="cacheroot" id="cacheroot">ディレクティブ</a></h2>
180<table class="directive">
181<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>キャッシュファイルが保管されるルートディレクトリ</td></tr>
182<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheRoot <var>directory</var></code></td></tr>
183<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr>
184<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
185<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache_disk</td></tr>
186</table>
187    <p><code class="directive">CacheRoot</code> ディレクティブはキャッシュファイルを
188    保管するためのディスク上のディレクトリを指定します。<code class="module"><a href="/mod/mod_cache_disk.html">mod_cache_disk</a></code> モジュールが Apache サーバにロードされて
189    いるか、組み込まれていれば、このディレクティブは<em>必ず</em>
190    定義しなければなりません。
191    <code class="directive">CacheRoot</code> の値を指定しなければ、
192    設定ファイルの処理でエラーになります。<code class="directive"><a href="#cachedirlevels">CacheDirLevels</a></code> ディレクティブと <code class="directive"><a href="#cachedirlength">CacheDirLength</a></code> ディレクティブが
193    指定されたルートディレクトリ下のディレクトリ構成を定義します。</p>
194
195    <div class="example"><p><code>
196      CacheRoot c:/cacheroot
197    </code></p></div>
198
199</div>
200</div>
201<div class="bottomlang">
202<p><span>翻訳済み言語: </span><a href="/en/mod/mod_cache_disk.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
203<a href="/fr/mod/mod_cache_disk.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a> |
204<a href="/ja/mod/mod_cache_disk.html" title="Japanese">&nbsp;ja&nbsp;</a> |
205<a href="/ko/mod/mod_cache_disk.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
206</div><div class="top"><a href="#page-header"><img src="/images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">コメント</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&amp;A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div>
207<script type="text/javascript"><!--//--><![CDATA[//><!--
208var comments_shortname = 'httpd';
209var comments_identifier = 'http://httpd.apache.org/docs/2.4/mod/mod_cache_disk.html';
210(function(w, d) {
211    if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
212        d.write('<div id="comments_thread"><\/div>');
213        var s = d.createElement('script');
214        s.type = 'text/javascript';
215        s.async = true;
216        s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
217        (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
218    }
219    else { 
220        d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
221    }
222})(window, document);
223//--><!]]></script></div><div id="footer">
224<p class="apache">Copyright 2014 The Apache Software Foundation.<br />この文書は <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> のライセンスで提供されています。.</p>
225<p class="menu"><a href="/mod/">モジュール</a> | <a href="/mod/directives.html">ディレクティブ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">用語</a> | <a href="/sitemap.html">サイトマップ</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
226if (typeof(prettyPrint) !== 'undefined') {
227    prettyPrint();
228}
229//--><!]]></script>
230</body></html>