Welcome! Log In Create A New Profile

Advanced

Re: Update/Delete cache entry.

Francis Daly
January 17, 2012 05:04AM
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.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Update/Delete cache entry.

atrus January 17, 2012 04:13AM

Re: Update/Delete cache entry.

Francis Daly January 17, 2012 05:04AM

Re: Update/Delete cache entry.

António P. P. Almeida January 17, 2012 07:58AM

Re: Update/Delete cache entry.

atrus January 17, 2012 09:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 281
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready