Created
July 18, 2024 10:51
-
-
Save antoniocampos/a8f12f78c8ce302d047a62089195211b to your computer and use it in GitHub Desktop.
Clear and Recreate Squid Cache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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