github.com/krum110487/go-htaccess@v0.0.0-20240316004156-60641c8e7598/tests/data/apache_2_2_34/manual/programs/htcacheclean.html.en (about) 1 <?xml version="1.0" encoding="ISO-8859-1"?> 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="en" xml:lang="en"><head> 4 <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" /> 5 <!-- 6 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 7 This file is generated from xml source: DO NOT EDIT 8 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 9 --> 10 <title>htcacheclean - Clean up the disk cache - Apache HTTP Server Version 2.2</title> 11 <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> 12 <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> 13 <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" /> 14 <script src="../style/scripts/prettify.min.js" type="text/javascript"> 15 </script> 16 17 <link href="../images/favicon.ico" rel="shortcut icon" /><link href="http://httpd.apache.org/docs/current/programs/htcacheclean.html" rel="canonical" /></head> 18 <body id="manual-page"><div id="page-header"> 19 <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p> 20 <p class="apache">Apache HTTP Server Version 2.2</p> 21 <img alt="" src="../images/feather.gif" /></div> 22 <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> 23 <div id="path"> 24 <a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">Programs</a></div><div id="page-content"><div class="retired"><h4>Please note</h4> 25 <p> This document refers to a legacy release (<strong>2.2</strong>) of Apache httpd. The active release (<strong>2.4</strong>) is documented <a href="http://httpd.apache.org/docs/current">here</a>. If you have not already upgraded, please follow <a href="http://httpd.apache.org/docs/current/upgrading.html">this link</a> for more information.</p> 26 <p>You may follow <a href="http://httpd.apache.org/docs/current/programs/htcacheclean.html">this link</a> to go to the current version of this document.</p></div><div id="preamble"><h1>htcacheclean - Clean up the disk cache</h1> 27 <div class="toplang"> 28 <p><span>Available Languages: </span><a href="../en/programs/htcacheclean.html" title="English"> en </a> | 29 <a href="../ko/programs/htcacheclean.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | 30 <a href="../tr/programs/htcacheclean.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> 31 </div> 32 33 <p><code>htcacheclean</code> is used to keep the size of 34 <code class="module"><a href="../mod/mod_disk_cache.html">mod_disk_cache</a></code>'s storage within a certain limit. This 35 tool can run either manually or in daemon mode. When running in 36 daemon mode, it sleeps in the background and checks the cache directories 37 at regular intervals for cached content to be removed. You can stop the daemon 38 cleanly by sending it a TERM or INT signal.</p> 39 </div> 40 <div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#synopsis">Synopsis</a></li> 41 <li><img alt="" src="../images/down.gif" /> <a href="#options">Options</a></li> 42 <li><img alt="" src="../images/down.gif" /> <a href="#exit">Exit Status</a></li> 43 </ul><h3>See also</h3><ul class="seealso"><li><code class="module"><a href="../mod/mod_disk_cache.html">mod_disk_cache</a></code></li></ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div> 44 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> 45 <div class="section"> 46 <h2><a name="synopsis" id="synopsis">Synopsis</a></h2> 47 <p><code><strong>htcacheclean</strong> 48 [ -<strong>D</strong> ] 49 [ -<strong>v</strong> ] 50 [ -<strong>t</strong> ] 51 [ -<strong>r</strong> ] 52 [ -<strong>n</strong> ] 53 -<strong>p</strong><var>path</var> 54 -<strong>l</strong><var>limit</var></code></p> 55 56 <p><code><strong>htcacheclean</strong> 57 [ -<strong>n</strong> ] 58 [ -<strong>t</strong> ] 59 [ -<strong>i</strong> ] 60 -<strong>d</strong><var>interval</var> 61 -<strong>p</strong><var>path</var> 62 -<strong>l</strong><var>limit</var></code></p> 63 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> 64 <div class="section"> 65 <h2><a name="options" id="options">Options</a></h2> 66 <dl> 67 <dt><code>-d<var>interval</var></code></dt> 68 <dd>Daemonize and repeat cache cleaning every <var>interval</var> minutes. 69 This option is mutually exclusive with the <code>-D</code>, <code>-v</code> 70 and <code>-r</code> options. To shutdown the daemon cleanly, just send it 71 a <code>SIGTERM</code> or <code>SIGINT</code>.</dd> 72 73 <dt><code>-D</code></dt> 74 <dd>Do a dry run and don't delete anything. This option is mutually 75 exclusive with the <code>-d</code> option.</dd> 76 77 <dt><code>-v</code></dt> 78 <dd>Be verbose and print statistics. This option is mutually exclusive 79 with the <code>-d</code> option.</dd> 80 81 <dt><code>-r</code></dt> 82 <dd>Clean thoroughly. This assumes that the Apache web server is 83 not running (otherwise you may get garbage in the cache). This option 84 is mutually exclusive with the <code>-d</code> option and implies 85 the <code>-t</code> option.</dd> 86 87 <dt><code>-n</code></dt> 88 <dd>Be nice. This causes slower processing in favour of other 89 processes. <code>htcacheclean</code> will sleep from time to time 90 so that (a) the disk IO will be delayed and (b) the kernel can schedule 91 other processes in the meantime.</dd> 92 93 <dt><code>-t</code></dt> 94 <dd>Delete all empty directories. By default only cache files are 95 removed, however with some configurations the large number of 96 directories created may require attention. If your configuration 97 requires a very large number of directories, to the point that 98 inode or file allocation table exhaustion may become an issue, use 99 of this option is advised.</dd> 100 101 <dt><code>-p<var>path</var></code></dt> 102 <dd>Specify <var>path</var> as the root directory of the disk cache. This 103 should be the same value as specified with the <code class="directive"><a href="../mod/mod_disk_cache.html#cacheroot">CacheRoot</a></code> directive.</dd> 104 105 <dt><code>-l<var>limit</var></code></dt> 106 <dd>Specify <var>limit</var> as the total disk cache size limit. The value 107 is expressed in bytes by default (or attaching <code>B</code> to the 108 number). Attach <code>K</code> for Kbytes or <code>M</code> for 109 MBytes.</dd> 110 111 <dt><code>-i</code></dt> 112 <dd>Be intelligent and run only when there was a modification of the disk 113 cache. This option is only possible together with the <code>-d</code> 114 option.</dd> 115 </dl> 116 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> 117 <div class="section"> 118 <h2><a name="exit" id="exit">Exit Status</a></h2> 119 <p><code>htcacheclean</code> returns a zero status ("true") if all 120 operations were successful, <code>1</code> otherwise.</p> 121 </div></div> 122 <div class="bottomlang"> 123 <p><span>Available Languages: </span><a href="../en/programs/htcacheclean.html" title="English"> en </a> | 124 <a href="../ko/programs/htcacheclean.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> | 125 <a href="../tr/programs/htcacheclean.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> 126 </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">Comments</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> 127 <script type="text/javascript"><!--//--><![CDATA[//><!-- 128 var comments_shortname = 'httpd'; 129 var comments_identifier = 'http://httpd.apache.org/docs/2.2/programs/htcacheclean.html'; 130 (function(w, d) { 131 if (w.location.hostname.toLowerCase() == "httpd.apache.org") { 132 d.write('<div id="comments_thread"><\/div>'); 133 var s = d.createElement('script'); 134 s.type = 'text/javascript'; 135 s.async = true; 136 s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; 137 (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); 138 } 139 else { 140 d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); 141 } 142 })(window, document); 143 //--><!]]></script></div><div id="footer"> 144 <p class="apache">Copyright 2017 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> 145 <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- 146 if (typeof(prettyPrint) !== 'undefined') { 147 prettyPrint(); 148 } 149 //--><!]]></script> 150 </body></html>