Welcome, Guest. Please login or register.
Did you miss your activation email?
Sunday 24 November 2024, 04:48:09 am

Login with username, password and session length

Download the latest community FREE version  HERE
14261 Posts in 4377 Topics by 6517 Members
Latest Member: Sandro
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  How to disable squid disk cache
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: How to disable squid disk cache  (Read 16564 times)
gian_h
Jr. Member
*
Offline Offline

Posts: 1


« 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?
Logged
Timmeh
Full Member
***
Offline Offline

Posts: 34


« Reply #1 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
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.063 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com