diff options
author | Nachtfalkeaw <nachtfalkeaw@web.de> | 2011-09-05 21:52:50 +0300 |
---|---|---|
committer | Nachtfalkeaw <nachtfalkeaw@web.de> | 2011-09-05 21:52:50 +0300 |
commit | 17d8c9fd931773b926883082f6d1276d24cf7231 (patch) | |
tree | 798645ddd81e28254fa80aede95839f87d9c69af /config | |
parent | 548dfb250399802d0908fb7e93e24a4656e7e0f2 (diff) | |
download | pfsense-packages-17d8c9fd931773b926883082f6d1276d24cf7231.tar.gz pfsense-packages-17d8c9fd931773b926883082f6d1276d24cf7231.tar.bz2 pfsense-packages-17d8c9fd931773b926883082f6d1276d24cf7231.zip |
squid: added variable for "maximum_object_size_in_memory $max_objsize_in_mem KB" so the size could be changed from GUI.
Diffstat (limited to 'config')
-rw-r--r-- | config/squid/squid.inc | 3 |
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 |