squidcache 0.4.1 Proxy Server: Cache Management /usr/local/pkg/squid.inc General /pkg_edit.php?xml=squid.xml&id=0 Remote Cache /pkg.php?xml=squid_upstream.xml Local Cache /pkg_edit.php?xml=squid_cache.xml&id=0 Antivirus /pkg_edit.php?xml=squid_antivirus.xml&id=0 ACLs /pkg_edit.php?xml=squid_nac.xml&id=0 Traffic Mgmt /pkg_edit.php?xml=squid_traffic.xml&id=0 Authentication /pkg_edit.php?xml=squid_auth.xml&id=0 Users /pkg.php?xml=squid_users.xml Real Time /squid_monitor.php Sync /pkg_edit.php?xml=squid_sync.xml Squid Cache General Settings listtopic Cache Replacement Policy cache_replacement_policy
Heap LFUDA: Keeps popular objects in cache regardless of their size and thus optimizes byte hit rate at the expense of hit rate.
Heap GDSF: Optimizes object-hit rate by keeping smaller, popular objects in cache.
Heap LRU: Works like LRU, but uses a heap instead.
LRU: Keeps recently referenced objects (i.e., replaces the object that has not been accessed for the longest time).
Please see cache_replacement_policy documentation for additional details.

Default: heap LFUDA ]]>
select heap LFUDA
Low-Water Mark in % cache_swap_low Cache replacement begins when the swap usage is above this low-water mark and attempts to maintain utilisation near the low-water mark.
Please see cache_swap_low documentation for additional details.
]]>
input 5 90
High-Water Mark in % cache_swap_high As swap utilization increases towards this high-water mark, object eviction becomes more agressive.
Please see cache_swap_high documentation for additional details.
]]>
input 5 95
Do Not Cache donotcache Note: Put each entry on a separate line. ]]> textarea 50 5 base64 Enable Offline Mode enable_offline Offline mode gives access to more cached information than normally allowed (e.g., expired cached versions where the origin server should have been contacted otherwise). ]]> checkbox External Cache Managers ext_cachemanager Cache Managers to be granted access to this proxy.
Note: Separate entries by semi-colons (;) ]]>
input 60
Squid Hard Disk Cache Settings listtopic Hard Disk Cache Size harddisk_cache_size Amount of disk space (in megabytes) to use for cached objects. input 10 100 Hard Disk Cache System harddisk_cache_system
ufs - 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.
null - does not use any storage. Ideal for Embedded/NanoBSD.

Please see cache_dir documentation for additional details. ]]>
select ufs
Clear Disk Cache NOW The script will only clear the disk cache on the following conditions:
- if the swap.state file is taking up more than 75% of disk space;
- or the drive is 90% full and swap.state is larger than 1GB.

If you wish to clear cache immediately, press the button. ]]>
info
Level 1 Directories level1_subdirs This will significantly slow down the startup process of the proxy service, but can speed up the caching under certain conditions. ]]> select 16 Hard Disk Cache Location harddisk_cache_location Default: /var/squid/cache
Note: Do NOT include the trailing / when setting a custom location. ]]>
input 60 /var/squid/cache
Minimum Object Size minimum_object_size Default: 0 (meaning there is no minimum) ]]> input 10 0 Maximum Object Size maximum_object_size Hint: If increased speed is more important than saving bandwidth, this should be set to a low value.
Default: 4 (MB) ]]>
input 10 4
Squid Memory Cache Settings listtopic Memory Cache Size memory_cache_size Please see cache_mem documentation for additional details.
This value should not exceed 50% of the installed RAM. The minimum value is 1MB.

Default: 64 (MB) ]]>
input 10 64
Maximum Object Size in RAM maximum_objsize_in_mem Default: 256 (KB) ]]> input 10 256 Memory Replacement Policy memory_replacement_policy
Heap GDSF: Optimizes object-hit rate by keeping smaller, popular objects in cache.
Heap LFUDA: Keeps popular objects in cache regardless of their size and thus optimizes byte hit rate at the expense of hit rate.
Heap LRU: Works like LRU, but uses a heap instead.
LRU: Keeps recently referenced objects (i.e., replaces the object that has not been accessed for the longest time).
Please see cache_replacement_policy documentation for additional details.

Default: heap GDSF ]]>
select heap GDSF
Dynamic and Update Content listtopic Cache Dynamic Content cache_dynamic_content enable caching of dynamic content.
]]>
checkbox 10
Refresh Patterns refresh_patterns Windows Updates

Notes:
- Squid wiki suggests setting 'Finish transfer if less than x KB remaining' on 'Traffic Mgmt' tab to -1 (but you can apply your own values to control cache).
- Set 'Maximum Download Size' on 'Traffic Mgmt' tab to a value that fits patterns your are applying. ]]>
select none 05
Custom refresh_patterns custom_refresh_patterns Note: These refresh_patterns will only be included if 'Cache Dynamic Content' is enabled. ]]> textarea 67 5 base64
squid_validate_cache($_POST, $input_errors);