aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-09-25 13:52:47 +0200
committerdoktornotor <notordoktor@gmail.com>2015-09-25 13:52:47 +0200
commitf20c88c7f62294b2da432eefdb8cb3a2437d0e3d (patch)
tree4295f0b09cc2c678dd93eac4ebb42178332ab7b4 /config
parent2dd4beaeadd3502610acbadb42366386e0c98581 (diff)
downloadpfsense-packages-f20c88c7f62294b2da432eefdb8cb3a2437d0e3d.tar.gz
pfsense-packages-f20c88c7f62294b2da432eefdb8cb3a2437d0e3d.tar.bz2
pfsense-packages-f20c88c7f62294b2da432eefdb8cb3a2437d0e3d.zip
Sanitize memory_cache_size and maximum_object_size_in_memory defaults closer to upstream
Diffstat (limited to 'config')
-rwxr-xr-xconfig/squid3/34/squid.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc
index a5837dd0..470c15c3 100755
--- a/config/squid3/34/squid.inc
+++ b/config/squid3/34/squid.inc
@@ -1119,10 +1119,10 @@ function squid_resync_cache() {
$cachedir = ($settings['harddisk_cache_location'] ? $settings['harddisk_cache_location'] : '/var/squid/cache');
$disk_cache_size = ($settings['harddisk_cache_size'] ? $settings['harddisk_cache_size'] : 100);
$level1 = ($settings['level1_subdirs'] ? $settings['level1_subdirs'] : 16);
- $memory_cache_size = ($settings['memory_cache_size'] ? $settings['memory_cache_size'] : 8);
+ $memory_cache_size = ($settings['memory_cache_size'] ? $settings['memory_cache_size'] : 64);
$max_objsize = ($settings['maximum_object_size'] ? $settings['maximum_object_size'] . " MB" : "4 MB");
$min_objsize = ($settings['minimum_object_size'] ? $settings['minimum_object_size'] : 0);
- $max_objsize_in_mem = ($settings['maximum_objsize_in_mem'] ? $settings['maximum_objsize_in_mem'] : 32);
+ $max_objsize_in_mem = ($settings['maximum_objsize_in_mem'] ? $settings['maximum_objsize_in_mem'] : 256);
$cache_policy = ($settings['cache_replacement_policy'] ? $settings['cache_replacement_policy'] : 'heap LFUDA');
$memory_policy = ($settings['memory_replacement_policy'] ? $settings['memory_replacement_policy'] : 'heap GDSF');
$offline_mode = ($settings['enable_offline'] == 'on' ? 'on' : 'off');