Author Topic: clear squid cache  (Read 7435 times)

mazallus

  • Zen Apprentice
  • *
  • Posts: 30
  • Karma: +0/-0
    • View Profile
clear squid cache
« on: April 04, 2011, 06:10:22 pm »
Does anyone know how to clear the squid cache in zentyal?.
« Last Edit: April 06, 2011, 04:20:06 pm by sixstone »

jsalamero

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1419
  • Karma: +45/-1
    • View Profile
Re: clear squid cache
« Reply #1 on: April 06, 2011, 08:04:22 am »
sudo /etc/init.d/ebox squid stop && sudo rm -rf /var/spool/squid/* && sudo squid -z && sudo /etc/init.d/ebox squid start

mazallus

  • Zen Apprentice
  • *
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Re: clear squid cache
« Reply #2 on: April 06, 2011, 12:46:27 pm »
Thanks,jsalamero,appreciate that.

marvinray.reyes

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +0/-0
  • Noob
    • View Profile
Re: clear squid cache
« Reply #3 on: September 22, 2011, 05:19:33 pm »
sudo /etc/init.d/ebox squid stop && sudo rm -rf /var/spool/squid/* && sudo squid -z && sudo /etc/init.d/ebox squid start

Thanks a lot bro... this squid http proxy is giving me a headache for almost a week.. my dev/mapper/ is always full..
by the way. is LVM partitioning safe?

igord93

  • Zen Monk
  • **
  • Posts: 56
  • Karma: +0/-0
    • View Profile
Re: clear squid cache
« Reply #4 on: August 14, 2014, 02:48:11 pm »
Does this still works? I know that now is zentyal instead of ebox.

If it works, does it stop the server? Or can i do this while everybody is using?

THanks

Zei

  • Zentyal Staff
  • Zen Warrior
  • *****
  • Posts: 213
  • Karma: +18/-0
    • View Profile
Re: clear squid cache
« Reply #5 on: August 14, 2014, 03:46:19 pm »
Now the steps should be:

sudo /etc/init.d/zentyal squid stop
sudo rm -rf /var/spool/squid3/*
sudo squid3 -z
sudo /etc/init.d/zentyal squid start


Keep in mind that the squid module kill be stoped during this process, so its recommended to do it at non working hours.

Regards  ;)