Update/Delete cache entry.

Francis Daly francis at daoine.org
Tue Jan 17 10:02:43 UTC 2012

On Tue, Jan 17, 2012 at 04:13:44AM -0500, atrus wrote:

Hi there,

Half an answer:

> I have an entry cache with nginx :
> head -n10 /tmp/nginx/f/a78359efac162eed0807e0d85761441f 

> I read that the cache file name is generated from md5sum of URL.
> But when I use command : 
> echo "http://www.bbc.co.uk/" | md5sum
> 5dc8a729e141d2e783c2c7e710e42fa8
> The result does not match the filename cached ?! 

"echo x" generates "x newline".

Use "echo -n x", or (better) "printf %s x"

> Is there any relation from file name and linux command md5sum ?

Yes, but you must use exactly the url.

Francis Daly        francis at daoine.org

More information about the nginx mailing list