@anupamadutta  
Previously, this would check for a purge attempt (not a success full purge attempt).
Considering that we can now check for a successful purge attempt in the stats, I thought that we wouldn't need 
the while loop for the access log. However, It just struck me that nginx's log is probably buffered, so a while loop might be safer.. What do you think?