Time for action – adding a cache directory
So far we have learned the meaning of different parameters used with the cache_dir
directive. Let's see an example of the cache directory /squid_cache/
with 50GB of free space:
cache_dir aufs /squid_cache/ 51200 32 512
We have a cache directory /squid_cache/
with 50 GB of free space with the values of L1
and L2
as 32 and 512 respectively. So, if we assume the average size of a cached object to be 16 KB, there will be 51200x1024÷(32x512x16) = 200 cached objects in each of the directories at the second level, which is quite good.
What just happened?
We added /squid_cache/
with a 50 GB free disk space as a cache directory to cache web documents on the hard disk. Following the previous instructions, we can ...
Get Squid Proxy Server 3.1 Beginner's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.