EFW Support

Support => General Support => Topic started by: gian_h on Wednesday 08 January 2014, 10:17:28 pm



Title: How to disable squid disk cache
Post by: gian_h on Wednesday 08 January 2014, 10:17:28 pm
Hi

I wish to disable the squid disk cache in EFW 3.0 beta 2, but if I try to put a value of 0 in "Cache size on harddisk (MB)" the system returns "Harddisk cache must be greater than 0."

In /etc/squid/squid.conf.tmpl we can find this configuration:
Code:
#if $DISABLE_DISK_CACHE == "on" or $CACHE_SIZE == 0 or $CACHE_SIZE == ''
# disk caching is disabled
cache_dir null /null
#else
 #set rockslotsize= 32768
cache_dir rock /var/spool/squid $CACHE_SIZE max-size=$rockslotsize
#end if
So, why I can't set the "Cache size on harddisk (MB)" to 0?


Title: Re: How to disable squid disk cache
Post by: Timmeh on Friday 02 January 2015, 11:17:40 am
set cache_dir to use the null module of squid...

edit the file: /etc/squid/squid.conf.tmpl

set...

cache_dir null /tmp