Re: [squid-users] Squid Cache

From: Rodrigo A B Freire <bit-bucket@dont-contact.us>
Date: Thu, 13 Jan 2005 10:55:25 -0200

    Khalid,

    The cache size is defined by the cache_dir on your file squid.conf .

    The default configuration is:
#cache_dir ufs /usr/local/squid/var/cache 5600 16 256
    That means: Your cache is located at /usr/local/squid/var/cache and will
have a maximum size of 5.600 MB (5,6 GB)

    You'll find the disk usage of your cache directory issuing a du -sb
/usr/local/squid/var/cache (maybe it will take a time to run)

    If you want a complete wipe of your cache directory, I first *STOP*
squid, ensure that your cache is stopped issuing a ps ax|grep squid, then:
rm -rf /usr/local/squid/var/cache
mkdir /usr/local/squid/var/cache
chown squid_process_owner /usr/local/squid/var/cache
/usr/local/squid/sbin/squid -z

    Then, run your cache normally.

    Please notice, as Elsen stated, Squid ages and delete normally the
objects on the cache, to keep the cache_size within the specified on
squid.conf . So, under typical ops, you have no need to erase your cache
dir.

    Good luck,
    Rodrigo.

---
Rodrigo A B Freire
http://www.pt2rod.qsl.br/
Brasilia - DF
.--. - ..--- .-. --- -..
----- Original Message ----- 
From: <khalid@netmarks.com.ph>
To: <squid-users@squid-cache.org>
Sent: Thursday, January 13, 2005 10:48 AM
Subject: [squid-users] Squid Cache
> Hi,
>
> I am new to squid, how do i know if the cache have reached its limit and
> where do i delete it. 
Received on Thu Jan 13 2005 - 05:55:32 MST

This archive was generated by hypermail pre-2.1.9 : Mon Mar 07 2005 - 12:59:35 MST