Hi all, i had some problems to get following settings on the Squid implemented:
memory_replacement_policy heap GDSF cache_replacement_policy heap LFUDA cache_dir aufs /var/spool/squid 20000 256(!) 256 The endian team has hardcoded the settings, and manual changings in squid.conf and /var/efw/proxy/advanced/settings or ../default/settings haven't got the wanted result. So I implemented some code from the original advproxy.cgi code (http://www.advproxy.net/). This is the result of the cache part of advproxy.cgi, beginning at line 1099: -------- $rule_cachemanagmet_div_start <table width='100%'> <tr> <td colspan='4'><b></b></td> </tr> <tr> <td width='25%'></td> <td width='20%'> </td><td width='25%'> </td><td width='30%'></td> </tr> <tr> <td class='base'>%s:</td> <td><input type='text' name='CACHE_MEM' value='$proxysettings{'CACHE_MEM'}' size='5' /></td> <td class='base'>%s:</td> <td><input type='text' name='CACHE_SIZE' value='$proxysettings{'CACHE_SIZE'}' size='5' /></td> </tr> <tr> <td class='base'>%s:</td> <td><input type='text' name='MIN_SIZE' value='$proxysettings{'MIN_SIZE'}' size='5' /></td> <td class='base'>%s:</td> <td><input type='text' name='MAX_SIZE' value='$proxysettings{'MAX_SIZE'}' size='5' /></td> </tr> <tr> <!-- must be fixed <td class='base'>$s:</td> --> <td> MEM_CACHE_POLICY </td> <td class='base'><select name='MEM_POLICY'> <option value='LRU' $selected{'MEM_POLICY'}{'LRU'}>LRU</option> <option value='heap LFUDA' $selected{'MEM_POLICY'}{'heap LFUDA'}>heap LFUDA</option> <option value='heap GDSF' $selected{'MEM_POLICY'}{'heap GDSF'}>heap GDSF</option> <option value='heap LRU' $selected{'MEM_POLICY'}{'heap LRU'}>heap LRU</option> </select></td> <!-- must be fixed <td class='base'>$s:</td> --> <td> HDD_CACHE_POLICY </td> <td class='base'><select name='CACHE_POLICY'> <option value='LRU' $selected{'CACHE_POLICY'}{'LRU'}>LRU</option> <option value='heap LFUDA' $selected{'CACHE_POLICY'}{'heap LFUDA'}>heap LFUDA</option> <option value='heap GDSF' $selected{'CACHE_POLICY'}{'heap GDSF'}>heap GDSF</option> <option value='heap LRU' $selected{'CACHE_POLICY'}{'heap LRU'}>heap LRU</option> </select></td> </tr> <tr> <!-- must be fixed <td class='base'>$s:</td> --> <td> L1_DIRS </td> <td class='base'><select name='L1_DIRS'> <option value='16' $selected{'L1_DIRS'}{'16'}>16</option> <option value='32' $selected{'L1_DIRS'}{'32'}>32</option> <option value='64' $selected{'L1_DIRS'}{'64'}>64</option> <option value='128' $selected{'L1_DIRS'}{'128'}>128</option> <option value='256' $selected{'L1_DIRS'}{'256'}>256</option> </select></td> </tr> <tr> <td colspan="2">%s: <img src='/images/blob.png' alt='*' /></td> <td class='base'>%s:</td> <td><input type='checkbox' name='OFFLINE_MODE' $checked{'OFFLINE_MODE'}{'on'} /></td> </tr> <tr> <td colspan="2"> <textarea name='DST_NOCACHE' cols='32' rows='6' wrap='off'> END ----------- the names are hardcoded, because I don't know, where and how to implement it with language variables. Hope it helps someone. bye Christoph ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Efw-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/efw-user
