aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2011-09-05 13:15:42 -0700
committerChris Buechler <cmb@pfsense.org>2011-09-05 13:15:42 -0700
commit60495e28102618719051d327f59cdfda5e46036c (patch)
treeb0ad5405f517f96c47bc30a9b97cbab19cce6453 /config
parentb4f7e40e49c1f91c45bc0018d378e75936733f24 (diff)
parent17d8c9fd931773b926883082f6d1276d24cf7231 (diff)
downloadpfsense-packages-60495e28102618719051d327f59cdfda5e46036c.tar.gz
pfsense-packages-60495e28102618719051d327f59cdfda5e46036c.tar.bz2
pfsense-packages-60495e28102618719051d327f59cdfda5e46036c.zip
Merge pull request #57 from Nachtfalkeaw/patch-10
squid: added variable for "maximum_object_size_in_memory $max_objsize_in_
Diffstat (limited to 'config')
-rw-r--r--config/squid/squid.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/squid/squid.inc b/config/squid/squid.inc
index 7a31f750..ad98ab14 100644
--- a/config/squid/squid.inc
+++ b/config/squid/squid.inc
@@ -690,6 +690,7 @@ function squid_resync_cache() {
$memory_cache_size = ($settings['memory_cache_size'] ? $settings['memory_cache_size'] : 8);
$max_objsize = ($settings['maximum_object_size'] ? $settings['maximum_object_size'] : 10);
$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);
$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');
@@ -712,7 +713,7 @@ function squid_resync_cache() {
$conf = <<<EOD
cache_mem $memory_cache_size MB
-maximum_object_size_in_memory 32 KB
+maximum_object_size_in_memory $max_objsize_in_mem KB
memory_replacement_policy $memory_policy
cache_replacement_policy $cache_policy
cache_dir $disk_cache_opts