<p>Thank you very much for your help and advice.</p><p><br></p><p><br></p><div id="origbody"><div style="background: #f2f2f2;">----- 原始邮件 -----<br>发件人:Amos Jeffries <squid3@treenet.co.nz><br>收件人:squid-users@lists.squid-cache.org<br>主题:Re: [squid-users] cache_mem differs from output in mgr:config<br>日期:2016年01月13日 06点18分<br></div><br>On 12/01/2016 2:36 p.m., XUFENG wrote:<br>> My squid's cache_mem in squid.conf differs from output in mgr:config.<br>> <br>...<br>> <br>> Anything wrong? <br>Just a bug in the mgr report display code I think. There are some others<br>known as well. The reporter code has often been overlooked by people<br>changing the squid.conf parser.<br>Your config file looks fine, and should be running with the values you<br>configured.<br>Some notes on what you could do to improve your squid.conf:<br>> unique_hostname squid-cache.xufeng.info<br>> visible_hostname squid-cache.xufeng.info<br>unique_hostname default value is to copy the visible_hostname. So you<br>can remove it when the two are identical like this.<br>Also, you only need to configure the visible_hostname line if Squid is<br>unable to locate the machine hostname automatically, or if it differs<br>from the name you want to publish publicly. You may want to experiment<br>with that.<br>> acl PURGE method PURGE<br>> http_access allow PURGE localhost<br>> http_access deny PURGE<br>If you can avoid PURGE entirely (including the acl line above) Squid<br>will be able to operate a bit more efficiently by disabling the feature.<br>Your config is not doing anything special with refresh_pattern overrides<br>that would make PURGE necessary. So you (and your visitors) can use the<br>browser refresh button (reload requests) instead of the special PURGE<br>method to fix any broken content identified.<br>> cache_effective_user squid<br>> cache_effective_group squid<br>If you can avoid configuring these manually it is a good idea to remove<br>them.<br> * The default cache_effective_group is to use the group(s) the OS has<br>membership assigned for the cache_effective_user.<br> (eg with command line "adduser squid squid")<br> * The default cache_effective_user can be built into Squid using the<br>build parameter:  --with-default-user=squid<br>> cache_peer 10.1.6.38 parent 80 0 no-query originserver round-robin<br>name=server_xufeng_info<br>You may want to also set the no-netdb-exchange and no-digest options if<br>your Squid accepts them.<br>Amos<br>_______________________________________________<br>squid-users mailing list<br>squid-users@lists.squid-cache.org<br>http://lists.squid-cache.org/listinfo/squid-users<br></div>