Update/Delete cache entry.

atrus nginx-forum at nginx.us
Tue Jan 17 09:13:44 UTC 2012

Hi guys,

I have an entry cache with nginx :

head -n10 /tmp/nginx/f/a78359efac162eed0807e0d85761441f 
8?O��������(1O]�        �D�
KEY: http://www.bbc.co.uk/
HTTP/1.1 200 OK
Server: Apache
X-Cache-Action: PASS (non-cacheable)
Cache-Control: private, max-age=60
X-Cache-Age: 0
Content-Type: text/html
Content-Encoding: gzip

I'd like update this entry before expired time of cache, so I will bash
a script to delete the entry file match the URL.
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

The result does not match the filename cached ?! 
Is there any relation from file name and linux command md5sum ?

and is there another way to update/delete an entry of cache ?

Thank you.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,221355,221355#msg-221355

More information about the nginx mailing list