If you want to use cache mgr for squid, install it then add these configuration:
In squid/squid.conf add these line:
cache_mgr [email protected]
cache_passwd your-secret-pass-then-tell-me-know all
In squid/cachemgr.conf add these line:
server:port description
Add these in apache2/conf.d/squid
ScriptAlias /cgi-bin/cachemgr.cgi /usr/local/squid/cgi-bin/cachemgr.cgi
order allow,deny
allow from local.network