Skip to content

Instantly share code, notes, and snippets.

@antoniocampos
Created July 18, 2024 10:51
Show Gist options
  • Save antoniocampos/a8f12f78c8ce302d047a62089195211b to your computer and use it in GitHub Desktop.
Save antoniocampos/a8f12f78c8ce302d047a62089195211b to your computer and use it in GitHub Desktop.
Clear and Recreate Squid Cache
#!/bin/bash
echo " "
echo "https://gist.github.com/antoniocampos"
echo " "
echo " "
/etc/init.d/squid stop
rm -rf /var/spool/squid
mkdir /var/spool/squid/
chown proxy:proxy /var/spool/squid/
squid -z
/etc/init.d/squid start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment