<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="home" title="HomePage" href="HomePage.html" />
<link rel="help" title="HowToUseWiki" href="HowToUseWiki.html" />
<link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
<link rel="author" title="The PhpWiki Programming Team" href="http://phpwiki.org/ThePhpWikiProgrammingTeam" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<meta name="language" content="en" />
<meta name="document-type" content="Public" />
<meta name="document-rating" content="General" />
<meta name="generator" content="PhpWiki" />
<meta name="PHPWIKI_VERSION" content="1.3.14" />

<link rel="stylesheet" type="text/css" charset="iso-8859-1" href="phpwiki-printer.css" />
<title>PhpWiki - Squid Cache Object Limit</title>
</head>
<body>

<div id="header">
  
<!-- Page title -->
<h1>Squid Cache Object Limit</h1>
</div>
<div id="content">



<div class="wikitext"><table class="wiki-dl-table" border="1" cellspacing="0" cellpadding="6"><tr class="tightenable top bottom"><th>Description</th>
<td>Squid proxy: changing the caching object limit.</td>
</tr>
<tr class="tightenable top bottom"><th>SME Version(s)</th>
<td>7.0</td>
</tr>
<tr class="tightenable top bottom"><th>Author</th>
<td>Taken from forums, original by pfloor: <a href="http://forums.contribs.org/viewtopic.php?t=31884" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://forums.contribs.org/viewtopic.php?t=31884</span></a></td>
</tr>
</table>
<p class="tightenable top bottom"><br />
<br />
Squid is set by default to a max object size of 4MB. You can raise that limit to 20 MB (or whatever you want) by the following. Be warned that your squid cache may become very LARGE if you are not careful with this setting!<br />
<br />
<br /></p>
<ul><li class="tightenable top bottom">Make a custom template directory if it doesn't exist:</li>
</ul>
<blockquote class="tightenable top"><p class="tightenable top bottom"><code># mkdir -p /etc/e-smith/templates-custom/etc/squid/squid.conf</code></p>
</blockquote>
<ul><li class="tightenable bottom">Place template fragment into temlplate directory:</li>
</ul>
<blockquote class="tightenable top"><p class="tightenable top bottom"><code># echo &quot;maximum_object_size 20480 KB&quot; &gt; /etc/e-smith/templates-custom/etc/squid/squid.conf/20Maximum_object_size</code></p>
</blockquote>
<ul><li class="tightenable bottom">Expand the Template:</li>
</ul>
<blockquote class="tightenable top"><p class="tightenable top bottom"><code># /sbin/e-smith/expand-template /etc/squid/squid.conf</code></p>
</blockquote>
<ul><li class="tightenable bottom">Restart squid to enable new settings:</li>
</ul>
<blockquote class="tightenable top"><p class="tightenable top bottom"><code># /etc/rc7.d/S90squid restart</code></p>
</blockquote>
<p class="tightenable bottom">Another interesting item I have discovered at my office is that some of the XP machines here use the squid cache and others don't. I have not been able to figure why but I can force IE and Firefox to use the squid cache by setting them manually in their options.</p>
</div>

<div id="footer">  <hr class="printer" noshade="noshade" />
<p class="editdate">Owner: &quot;jester&quot;  Last edited on May 12, 2006  4:28 am by &quot;jester&quot;</p>
</div>

</div>
<!-- Add your Disclaimer here -->
</body>
</html>
