* New upstream version + header inclusion cleanup (closes: #590291) + kfreebsd related fixes + long outstanding user interface fixes and various regression fixes
<li><a href="#prob-proxy">7.6 Avoid use of apt-cacher-ng for certain hosts</a></li>
24
<li><a href="#howto-dontcache1">7.7 Avoid caching for certain domains or certain file types</a></li>
25
<li><a href="#howto-faster">7.8 How to make big download series faster</a></li>
24
26
</ul></li>
25
27
</ul>
26
28
<h1><a name="howtos"></a>Chapter 7: HOWTOs and FAQ</h1>
191
193
3 and 4: limited debug information is written to apt-cacher.err
192
194
</li>
193
195
<li>
194
5: much more debug information written to apt-cacher.err (requires a special binary, see above)
196
5: much more debug information written to apt-cacher.err (requires a special debug binary, see <a href="troublefaq.html#prob-freeze">section 8.2</a>)
195
197
</li>
196
198
<li>
197
199
11: like 5 but all Debug marks are printed to the log, including anonymous marks for code flow tracking.
202
204
</p>
203
205
<h2><a name="prob-proxy"></a>7.6 Avoid use of apt-cacher-ng for certain hosts</h2>
204
206
<p>
205
Sometimes clients might not to use apt-cacher-ng for certain hosts while accessing all others through it. Such hosts can be marked for direct access in apt configuration, e.g. in <em>/etc/apt/apt.conf</em>:
207
Sometimes clients might need to access some remote side directly to do some non-file-transfer oriented work but still passing the data through configured apt-cacher-ng proxy. Such remote hosts can be marked for direct access in apt configuration, e.g. in <em>/etc/apt/apt.conf</em>:
<h2><a name="howto-dontcache1"></a>7.7 Avoid caching for certain domains or certain file types</h2>
213
<p>
214
Sometimes clients to download through apt-cacher-ng but the data shall not be stored on the harddisk of the server. To get it, use the DontCache directive (see examples for details) to define such files.
215
</p>
216
<h2><a name="howto-faster"></a>7.8 How to make big download series faster</h2>
217
<p>
218
Symptom: A common situation is a periodic download of hundreds of files through apt-cacher-ng where just a half is present in the cache. Although caching works fine, there are visible delays on some files during the download.
219
</p>
220
<p>
221
Possible cause and relief: the download from the real mirror gets interrupted while apt-cacher-ng delivers a set of files from the internal cache. While the connection is suspended, it times out and needs to be recreated when a miss occurs, i.e. apt-cacher-ng has to fetch more from the remote mirror. A workaround to this behaviour is simple, provided that the remote mirror can handle long request queues: set the pipelining depth to a very high value in apt.conf file or one of its replacement files in /etc/apt/apt.conf.d/. With something like: