Open peixotorms opened 2 years ago
It looks like my version of lua-md5 did not support the sumhexa function, so I solved it by removing the dependency altogether. Just replace the function purge_one()
to let the OS do the md5 directly, rather than rely on the lua module. Pull request sent. https://github.com/diego-treitos/nginx_cache_multipurge/pull/11
function purge_one()
os.execute( "VAR=$(echo -n "..cmp_cache_key.." | md5sum | awk '{print $1}'); find '"..cmp_cache_path.."' -name ${VAR} -type f -exec rm {} + " )
end
Hi
According to the docs:
But how to purge
/
only?If I try
GET /cache/purge/
I get