Author Topic: squid.conf cache file size if left blank prevents squid from starting  (Read 1535 times)

jjm1982

  • Zen Warrior
  • ***
  • Posts: 200
  • Karma: +7/-0
    • View Profile
Guys, this is more of an FYI I guess. When I configured the http proxy using ebox 1.2.1 and you leave the cache file size blank it doesn't include the size in the squid.config and the service doesn't start. Squid complains about "cache_dir" when you perform a "squid -z" or try to start it manually. The line appears like this (cache_dir ufs /var/spool/squid  16 256) in squid.conf. When I include a cache file size, it updates the squid.conf file correctly (cache_dir ufs /var/spool/squid 6144 16 256). I decided to use 6GB of disk space for the proxy.

Wouldn't it be beneficial to include a minimum cache size or leave that option out of the config if left blank or even make it a mandatory field?