Re: [squid-users] How to clear all the cached files under a folder

2011-05-25 Thread Amos Jeffries

On 25/05/11 13:26, Wang Shiqiang wrote:

-邮件原件-
发件人: Amos Jeffries

On 24/05/11 22:31, Wang Shiqiang wrote:

Hi All:

   I use squidclient to clear single file cache.
   Does anyone know how to clear all the cached files under one
folder?


Defined folder please. URL path level? cache_dir location? cache_dire
sub-directory?


Amos


On 25/05/11 13:26, Wang Shiqiang wrote:

We have more than one squid server, now I ran the squidclient on a
standalone server, I can clear one file every time.
But when I need to clear a folder, just like http://cache.server.com/abc/, I
don’t know how to finish this job


So URL paths then.

HTTP is designed so that manual erase is *never* needed.

 * Proxy obeying HTTP Expires: and Cache-Control headers will 
automatically cause objects to be replaced when the server says they 
need updating or when the client requests a data re-valiation.


 * Website sending proper Cache-Control, Expires and timestamps for 
objects will cause correct replacement in your Squid and every other one.



So ... why do you face the need to touch the cache?


Amos
--
Please be using
  Current Stable Squid 2.7.STABLE9 or 3.1.12
  Beta testers wanted for 3.2.0.7 and 3.1.12.1


[squid-users] How to clear all the cached files under a folder

2011-05-24 Thread Wang Shiqiang
Hi All:

 I use squidclient to clear single file cache. 
 Does anyone know how to clear all the cached files under one
folder?
 Thanks
 

Best Regards!
---
Green Wang



Re: [squid-users] How to clear all the cached files under a folder

2011-05-24 Thread Amos Jeffries

On 24/05/11 22:31, Wang Shiqiang wrote:

Hi All:

  I use squidclient to clear single file cache.
  Does anyone know how to clear all the cached files under one
folder?


Defined folder please. URL path level? cache_dir location? cache_dire 
sub-directory?



Amos
--
Please be using
  Current Stable Squid 2.7.STABLE9 or 3.1.12
  Beta testers wanted for 3.2.0.7 and 3.1.12.1


Re: [squid-users] How to clear all the cached files under a folder

2011-05-24 Thread Wang Shiqiang
-邮件原件-
发件人: Amos Jeffries [mailto:squ...@treenet.co.nz] 
发送时间: 2011年5月24日 18:37
收件人: squid-users@squid-cache.org
主题: Re: [squid-users] How to clear all the cached files under a folder

On 24/05/11 22:31, Wang Shiqiang wrote:
 Hi All:

   I use squidclient to clear single file cache.
   Does anyone know how to clear all the cached files under one
 folder?

Defined folder please. URL path level? cache_dir location? cache_dire 
sub-directory?


Amos
-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.12
   Beta testers wanted for 3.2.0.7 and 3.1.12.1


We have more than one squid server, now I ran the squidclient on a
standalone server, I can clear one file every time.
But when I need to clear a folder, just like http://cache.server.com/abc/, I
don’t know how to finish this job

致
礼
Best Regards!
---
王士强