Try to use my script on site: http://linux-sysadmin.org/2010/08/nginx-invalidation-purging-content/ Posted at Nginx Forum: http://forum.nginx.org/read.php?2,30833,126252#msg-126252