magiclen / nginx-cache-purge

An alternative way to do `proxy_cache_purge` or `fastcgi_cache_purge` for Nginx.
48 stars 12 forks source link

fix: change lua os.exec to openresty non blocking exec API #2

Closed oowl closed 1 year ago

oowl commented 1 year ago

in openresty, lua os API will blocked NGINX, So we need use openresty pipe API to replace it https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/pipe.md#spawn

magiclen commented 1 year ago

It seems that Ubuntu dropped the Lua module. I will find another way to use nginx-cache-purge.