clearing cache squid

February 20, 2007 at 5:22 am | In Linux Server | 1 Comment

just stop squid, and erase all the files in your cache directory… for example:
Code:

squid -k shutdown

rm -fr /var/lib/squid/cache/*

then re-create the swap directory structure:
Code:

squid -z

then start squid again…

PS: you can also run “squid -z” without first deleting the cache files, and AFAIK that way it creates a new directory structure without wiping-out the old one, but i’m not sure if that’s what happens as i’ve never done it…

1 Comment »

RSS feed for comments on this post.

  1. boss mo nanya neh
    kok cache dihapus kenpa ya..bukannya qt butuh bangt tuh ma cache.
    apa ga bisa di akali agar cache itu dihapus yg lama2 az.sdang kan untuk yg baru ttp dipake


Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.