Welcome! Log In Create A New Profile


Update/Delete cache entry.

January 17, 2012 04:13AM
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
Vary: X-Country,Accept-Encoding,X-Ip_is_advertise_combined,X-Ip_is_uk_combined, X-GeoIP
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.
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: 100
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