Set the default value for max-size parameter on any cache_dir.
The value is specified in bytes, and the default is 4 MB.
If you wish to get a high BYTES hit ratio, you should probably
increase this (one 32 MB object hit counts for 3200 10KB
hits).
maximum_object_size 10240 KB
To verify your configuration file you can use the -k parse option
% /usr/local/squid/sbin/squid -k parse
How can I disable Squid's log files?
To disable access.log:
cache_access_log /dev/null
To disable store.log:
cache_store_log none
It is a bad idea to disable the cache.log because this file contains many important status and debugging messages. However, if you really want to, you can: To disable access.log:
cache_log /dev/null
Useful CLI to check logs:
cat /var/log/squid/access.log | awk -F' ' '{print $3","$7}' |sort -n |uniq
awk -F : define separator
{print $3","$7}: Print 3rd and 7th field
sort -n : sort on numerical value
# Individual endpoints report cat /var/log/squid/access.log | awk -F' ' '{print $3}' |sort -n | uniq cat /var/log/squid/access.log | awk -F' ' '{print $3}' |sort -n | uniq | wc -l # Individual location report cat /var/log/squid/access.log | awk -F' ' '{print $3}' |sort -n | uniq | awk -F'.' '{print $1"."$2"."$3}' | sort -n | uniq cat /var/log/squid/access.log | awk -F' ' '{print $3}' |sort -n | uniq | awk -F'.' '{print $1"."$2"."$3}' | sort -n | uniq | wc -l
