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_disk_cache - 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.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.2</p> 20<img alt="" src="/images/feather.gif" /></div> 21<div class="up"><a href="./"><img title="<-" alt="<-" src="/images/left.gif" /></a></div> 22<div id="path"> 23<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP サーバ</a> > <a href="http://httpd.apache.org/docs/">ドキュメンテーション</a> > <a href="../">バージョン 2.2</a> > <a href="./">モジュール</a></div> 24<div id="page-content"> 25<div id="preamble"><h1>Apache モジュール mod_disk_cache</h1> 26<div class="toplang"> 27<p><span>翻訳済み言語: </span><a href="/en/mod/mod_disk_cache.html" hreflang="en" rel="alternate" title="English"> en </a> | 28<a href="/ja/mod/mod_disk_cache.html" title="Japanese"> ja </a> | 29<a href="/ko/mod/mod_disk_cache.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> 30</div> 31<div class="outofdate">この日本語訳はすでに古くなっている 32 可能性があります。 33 最近更新された内容を見るには英語版をご覧下さい。 34 </div> 35<table class="module"><tr><th><a href="module-dict.html#Description">説明:</a></th><td>URI をキーにしたコンテンツキャッシュストレージ管理</td></tr> 36<tr><th><a href="module-dict.html#Status">ステータス:</a></th><td>Extension</td></tr> 37<tr><th><a href="module-dict.html#ModuleIdentifier">モジュール識別子:</a></th><td>disk_cache_module</td></tr> 38<tr><th><a href="module-dict.html#SourceFile">ソースファイル:</a></th><td>mod_disk_cache.c</td></tr></table> 39<h3>概要</h3> 40 41 <p><code class="module"><a href="/mod/mod_disk_cache.html">mod_disk_cache</a></code> はディスクを使用したストレージ 42 管理機構を実装しています。主に 43 <code class="module"><a href="/mod/mod_cache.html">mod_cache</a></code> と組み合わせて使われます。</p> 44 45 <p>コンテンツのキャッシュへの保存と取得は URI に基づいたキーが使われます。 46 アクセス保護のかけられているコンテンツはキャッシュされません。</p> 47 48 <p>キャッシュの大きさを最大レベルで維持するために 49 <code class="program"><a href="/programs/htcacheclean.html">htcacheclean</a></code> を使うことができます。</p> 50 51 <div class="note"><h3>注:</h3> 52 <p><code class="module"><a href="/mod/mod_disk_cache.html">mod_disk_cache</a></code> は 53 <code class="module"><a href="/mod/mod_cache.html">mod_cache</a></code> を必要とします</p> 54 </div> 55</div> 56<div id="quickview"><h3 class="directives">ディレクティブ</h3> 57<ul id="toc"> 58<li><img alt="" src="/images/down.gif" /> <a href="#cachedirlength">CacheDirLength</a></li> 59<li><img alt="" src="/images/down.gif" /> <a href="#cachedirlevels">CacheDirLevels</a></li> 60<li><img alt="" src="/images/down.gif" /> <a href="#cachemaxfilesize">CacheMaxFileSize</a></li> 61<li><img alt="" src="/images/down.gif" /> <a href="#cacheminfilesize">CacheMinFileSize</a></li> 62<li><img alt="" src="/images/down.gif" /> <a href="#cacheroot">CacheRoot</a></li> 63</ul> 64<ul class="seealso"><li><a href="#comments_section">コメント</a></li></ul></div> 65 66<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 67<div class="directive-section"><h2><a name="CacheDirLength" id="CacheDirLength">CacheDirLength</a> <a name="cachedirlength" id="cachedirlength">ディレクティブ</a></h2> 68<table class="directive"> 69<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>サブディレクトリ名の文字数</td></tr> 70<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheDirLength <var>length</var></code></td></tr> 71<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheDirLength 2</code></td></tr> 72<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr> 73<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr> 74<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_disk_cache</td></tr> 75</table> 76 <p><code class="directive">CacheDirLength</code> ディレクティブはキャッシュ 77 階層の各サブディレクトリの文字数を設定します。</p> 78 79 <div class="note"> 80 <p><code class="directive">CacheDirLevels</code>* 81 <code class="directive"><a href="#cachedirlength">CacheDirLength</a></code> の 82 結果は 20 以内でなければなりません。</p> 83 </div> 84 85 <div class="example"><p><code> 86 CacheDirLength 4 87 </code></p></div> 88 89</div> 90<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 91<div class="directive-section"><h2><a name="CacheDirLevels" id="CacheDirLevels">CacheDirLevels</a> <a name="cachedirlevels" id="cachedirlevels">ディレクティブ</a></h2> 92<table class="directive"> 93<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>キャッシュのサブディレクトリの深さの数</td></tr> 94<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheDirLevels <var>levels</var></code></td></tr> 95<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheDirLevels 3</code></td></tr> 96<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr> 97<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr> 98<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_disk_cache</td></tr> 99</table> 100 <p><code class="directive">CacheDirLevels</code> ディレクティブはキャッシュの 101 サブディレクトリの深さを設定します。キャッシュデータは <code class="directive"><a href="#cacheroot">CacheRoot</a></code> ディレクトリから 102 このディレクトリの深さ分下のディレクトリに保存されます。</p> 103 104 <div class="note"> 105 <p><code class="directive">CacheDirLevels</code>* 106 <code class="directive"><a href="#cachedirlength">CacheDirLength</a></code> の 107 結果は 20 以内でなければなりません。</p> 108 </div> 109 110 <div class="example"><p><code> 111 CacheDirLevels 5 112 </code></p></div> 113 114</div> 115<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 116<div class="directive-section"><h2><a name="CacheMaxFileSize" id="CacheMaxFileSize">CacheMaxFileSize</a> <a name="cachemaxfilesize" id="cachemaxfilesize">ディレクティブ</a></h2> 117<table class="directive"> 118<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>キャッシュに保管されるドキュメントの最大の (バイトでの) サイズ</td></tr> 119<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheMaxFileSize <var>bytes</var></code></td></tr> 120<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheMaxFileSize 1000000</code></td></tr> 121<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr> 122<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr> 123<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_disk_cache</td></tr> 124</table> 125 <p><code class="directive">CacheMaxFileSize</code> ディレクティブは、ドキュメントを 126 キャッシュするかどうかを判定する、最大のサイズをバイト数で設定します。</p> 127 128 <div class="example"><p><code> 129 CacheMaxFileSize 64000 130 </code></p></div> 131 132</div> 133<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 134<div class="directive-section"><h2><a name="CacheMinFileSize" id="CacheMinFileSize">CacheMinFileSize</a> <a name="cacheminfilesize" id="cacheminfilesize">ディレクティブ</a></h2> 135<table class="directive"> 136<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>キャッシュに保管されるドキュメントの最小限の (バイトでの) 大きさ</td></tr> 137<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheMinFileSize <var>bytes</var></code></td></tr> 138<tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheMinFileSize 1</code></td></tr> 139<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr> 140<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr> 141<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_disk_cache</td></tr> 142</table> 143 <p><code class="directive">CacheMinFileSize</code> ディレクティブは、ドキュメントを 144 キャッシュするかどうかを判定する、最小のサイズをバイト数で設定します。</p> 145 146 <div class="example"><p><code> 147 CacheMinFileSize 64 148 </code></p></div> 149 150</div> 151<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 152<div class="directive-section"><h2><a name="CacheRoot" id="CacheRoot">CacheRoot</a> <a name="cacheroot" id="cacheroot">ディレクティブ</a></h2> 153<table class="directive"> 154<tr><th><a href="directive-dict.html#Description">説明:</a></th><td>キャッシュファイルが保管されるルートディレクトリ</td></tr> 155<tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheRoot <var>directory</var></code></td></tr> 156<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr> 157<tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr> 158<tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_disk_cache</td></tr> 159</table> 160 <p><code class="directive">CacheRoot</code> ディレクティブはキャッシュファイルを 161 保管するためのディスク上のディレクトリを指定します。<code class="module"><a href="/mod/mod_disk_cache.html">mod_disk_cache</a></code> モジュールが Apache サーバにロードされて 162 いるか、組み込まれていれば、このディレクティブは<em>必ず</em> 163 定義しなければなりません。 164 <code class="directive">CacheRoot</code> の値を指定しなければ、 165 設定ファイルの処理でエラーになります。<code class="directive"><a href="#cachedirlevels">CacheDirLevels</a></code> ディレクティブと <code class="directive"><a href="#cachedirlength">CacheDirLength</a></code> ディレクティブが 166 指定されたルートディレクトリ下のディレクトリ構成を定義します。</p> 167 168 <div class="example"><p><code> 169 CacheRoot c:/cacheroot 170 </code></p></div> 171 172</div> 173</div> 174<div class="bottomlang"> 175<p><span>翻訳済み言語: </span><a href="/en/mod/mod_disk_cache.html" hreflang="en" rel="alternate" title="English"> en </a> | 176<a href="/ja/mod/mod_disk_cache.html" title="Japanese"> ja </a> | 177<a href="/ko/mod/mod_disk_cache.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p> 178</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&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> 179<script type="text/javascript"><!--//--><![CDATA[//><!-- 180var comments_shortname = 'httpd'; 181var comments_identifier = 'http://httpd.apache.org/docs/2.2/mod/mod_disk_cache.html'; 182(function(w, d) { 183 if (w.location.hostname.toLowerCase() == "httpd.apache.org") { 184 d.write('<div id="comments_thread"><\/div>'); 185 var s = d.createElement('script'); 186 s.type = 'text/javascript'; 187 s.async = true; 188 s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; 189 (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); 190 } 191 else { 192 d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); 193 } 194})(window, document); 195//--><!]]></script></div><div id="footer"> 196<p class="apache">Copyright 2013 The Apache Software Foundation.<br />この文書は <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> のライセンスで提供されています。.</p> 197<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[//><!-- 198if (typeof(prettyPrint) !== 'undefined') { 199 prettyPrint(); 200} 201//--><!]]></script> 202</body></html>