FRiCKLE / ngx_cache_purge

nginx module which adds ability to purge content from FastCGI, proxy, SCGI and uWSGI caches.
http://labs.frickle.com/nginx_ngx_cache_purge/
Other
1.06k stars 311 forks source link

500 Internal Server Error on attempted cache purge with aio threads enabled (nginx 1.9.5) #38

Open PeterMaxwell opened 9 years ago

PeterMaxwell commented 9 years ago

fastcgi_cache_purge causes a 500 error when "aio threads" is specified in the http section of the nginx config.

The problem resolves itself when nginx threads are disabled.

nhannguyensy commented 8 years ago

Hi PeterMaxwell ,

Do you have any way to use nginx thread pool with module ngx_cache_purge ?

Nhan Nguyen

mlavkin commented 7 years ago

Workaround - set aio off; on purge location.

zengxiaobai commented 5 years ago

you can ajust the code like

if (NGX_HAVE_FILE_AIO)

to

if (NGX_HAVE_FILE_AIO || NGX_THREADS)

also you need to configure with --with_threads