.
All rights reserved.
*/
/* ========================================================================== */
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code MUST retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form MUST reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
/* ========================================================================== */
]]>
Describe your package hereDescribe your package requirements hereCurrently there are no FAQ items provided.squidcachenoneProxy server: Cache management/usr/local/pkg/squid.incGeneral/pkg_edit.php?xml=squid.xml&id=0Remote Cache/pkg.php?xml=squid_upstream.xmlLocal Cache/pkg_edit.php?xml=squid_cache.xml&id=0Antivirus/pkg_edit.php?xml=squid_antivirus.xml&id=0ACLs/pkg_edit.php?xml=squid_nac.xml&id=0Traffic Mgmt/pkg_edit.php?xml=squid_traffic.xml&id=0Authentication/pkg_edit.php?xml=squid_auth.xml&id=0Users/pkg.php?xml=squid_users.xmlReal time/squid_monitor.phpSync/pkg_edit.php?xml=squid_sync.xmlSquid Cache General SettingslisttopicCache replacement policycache_replacement_policyThe cache replacement policy decides which objects will remain in cache and which objects are replaced to create space for the new objects. The default policy for cache replacement is LFUDA. Please see the type descriptions specified in the memory replacement policy for additional detail.selectheap LFUDALow-water-mark in %cache_swap_lowCache replacement begins when the swap usage is above the low-low-water mark and attempts to maintain utilisation near the low-water-mark.input590High-water-mark in %cache_swap_highAs swap utilisation gets close to the high-water-mark object eviction becomes more aggressive.input595Do not cachedonotcacheEnter each domain or IP address on a new line that should never be cached.textarea505base64Enable offline modeenable_offlineEnable this option and the proxy server will never try to validate cached objects. The offline mode gives access to more cached information than the proposed feature would allow (stale cached versions, where the origin server should have been contacted).checkboxExternal Cache-Managersext_cachemanagerEnter the IPs for the external Cache Managers to be allowed here, separated by semi-colons (;).input60Squid Hard disk cacheSettingslisttopicHard disk cache sizeharddisk_cache_sizeThis is the amount of disk space (in megabytes) to use for cached objects.input10100Hard disk cache systemharddisk_cache_system ufs is the old well-known Squid storage format that has always been there.
aufs uses POSIX-threads to avoid blocking the main Squid process on disk-I/O. (Formerly known as async-io.)
diskd uses a separate process to avoid blocking the main Squid process on disk-I/O. To use ipcs and ipcrm on squid, Download livefs.iso from ftp://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/8.3/ mount it and copy /usr/bin/ipcs and /usr/bin/ipcrm to your system and set them as executables.
null Does not use any storage. Ideal for Embedded/NanoBSD.]]>selectufsLevel 1 subdirectorieslevel1_subdirsEach level-1 directory contains 256 subdirectories, so a value of 256 level-1 directories will use a total of 65536 directories for the hard disk cache. This will significantly slow down the startup process of the proxy service, but can speed up the caching under certain conditions.select16Hard disk cache locationharddisk_cache_locationThis is the directory where the cache will be stored. (note: do not end with a /). If you change this location, squid needs to make a new cache, this could take a whileinput60/var/squid/cacheMinimum object sizeminimum_object_sizeObjects smaller than the size specified (in kilobytes) will not be saved on disk. The default value is 0, meaning there is no minimum.input100Maximum object sizemaximum_object_sizeObjects larger than the size specified (in kilobytes) will not be saved on disk. If you wish to increase speed more than you want to save bandwidth, this should be set to a low value.input104Squid Memory Cache SettingslisttopicMemory cache sizememory_cache_sizeThis is the amount of physical RAM (in megabytes) to be used for negative cache and in-transit objects. This value should not exceed more than 50% of the installed RAM. The minimum value is 1MB.input108Maximum object size in RAMmaximum_objsize_in_memObjects smaller than the size specified (in kilobytes) will be saved in RAM. Default is 32.input1032Memory replacement policymemory_replacement_policyThe memory replacement policy determines which objects are purged from memory when space is needed. The default policy for memory replacement is GDSF. <p> <b> LRU: Last Recently Used Policy </b> - The LRU policies keep recently referenced objects. i.e., it replaces the object that has not been accessed for the longest time. <p> <b> Heap GDSF: Greedy-Dual Size Frequency </b> - The Heap GDSF policy optimizes object-hit rate by keeping smaller, popular objects in cache. It achieves a lower byte hit rate than LFUDA though, since it evicts larger (possibly popular) objects. <p> <b> Heap LFUDA: Least Frequently Used with Dynamic Aging </b> - The Heap LFUDA policy keeps popular objects in cache regardless of their size and thus optimizes byte hit rate at the expense of hit rate since one large, popular object will prevent many smaller, slightly less popular objects from being cached. <p> <b> Heap LRU: Last Recently Used </b> - Works like LRU, but uses a heap instead. <p> Note: If using the LFUDA replacement policy, the value of Maximum Object Size should be increased above its default of 12KB to maximize the potential byte hit rate improvement of LFUDA.selectheap GDSFDynamic and Update ContentlisttopicCache Dynamic Contentcache_dynamic_contentenable caching of dynamic content.
]]>checkbox10Refresh Patternsrefresh_patternsYoutube and windowsupdate
Notes:
Squid wiki suggests 'Finish transfer if less than x KB remaining' on 'traffic mgmt' squid tab to -1 but you can apply your own values to control cache.
set Maximum download size on 'traffic mgmt' squid tab to a value that fits patterns your are applying. Microsoft may need 200Mb and youtube 4GB.]]>selectnone06Custom refresh_patternscustom_refresh_patternsEnter custom refresh_patterns for better dynamic cache. This options will be included only if dynamic cache is enabled.textarea675base64
if($_POST['harddisk_cache_size'] != $config['installedpackages']['squidcache']['config'][0]['harddisk_cache_size']) {
$needs_dash_z = true;
}
squid_validate_cache($_POST, &$input_errors);
squid_resync();
if($needs_dash_z)
squid_dash_z();