Closed machadovilaca closed 7 years ago
@machadovilaca (ngx_(http_proxy_cache,http_scgi_cache,http_uwsgi_cache,http_cache,)_purge_handler
) -> cplcf->fastcgi.purge_all
?
@denji ohhh...I was fixing the error specifically for a fastcgi cache configuration and I generalized the solution for all different types. I will review the code and correct it accordingly.
Ok, I reviewed the code, and changed proxy,scgi and uwsgi. BTW in ngx_http_cache_purge_handler function I was not able to avoid using else ifs to fix my segmentation fault error.
Resolved nginx-modules/ngx_cache_purge#9
Segmentation Fault when trying to purge all the content from nginx cache. cplcf->conf value was 0x0. Fixed by changing cplcf structure field accessed to cplcf->fastcgi.purge_all.