Fastcgi_cache_purge removed

Anyone else noticed that on Ubuntu 16.04, with the latest (1.11.5) Mainline NGINX fastcgi_cache_purge has been removed? This is bring down a lot of my sites. Curious to hear if any of y’all have a solution.

Hi Chris,

Having the same problem… How did you solve it?

Has this been resolved?

Dont know !

Apparently the fastcgi_cache_purge module is only available in the commercial version (NGINX Plus) now, but the module ngx_cache_purge restores that functionality. You will have to build nginx yourself though.

I’ve been successful on xenial by just including the module in the nginx/development ppa and rebuilding like this (just don’t copy and paste as I’m writing this partly from memory):

sudo add-apt-repository ppa:nginx/development sudo vim /etc/apt/sources.list.d/nginx-ubuntu-development-xenial.list –> uncomment or add deb-src sudo apt-get update sudo apt-get build-dep nginx

mkdir nginx cd nginx apt-get source nginx

wget tar -xvzf 2.3.tar.gz mv ngx_cache_purge-2.3 ngx_cache_purge mv ngx_cache_purge/ nginx-1.11.9/debian/modules/

vim nginx-1.11.9/debian/rules add to -full block --add-module=$(MODULESDIR)/ngx_cache_purge \

`cd nginx-1.11.9/ dpkg-buildpackage -uc -b``

sudo dpkg -i nginx/nginx-common_1.11.9-0+xenial0_all.deb nginx/libnginx-mod-http-auth-pam_1.11.9-0+xenial0_amd64.deb nginx/libnginx-mod-http-dav-ext_1.11.9-0+xenial0_amd64.deb nginx/libnginx-mod-http-echo_1.11.9-0+xenial0_amd64.deb nginx/libnginx-mod-http-geoip_1.11.9-0+xenial0_amd64.deb nginx/libnginx-mod-http-image-filter_1.11.9-0+xenial0_amd64.deb nginx/libnginx-mod-http-subs-filter_1.11.9-0+xenial0_amd64.deb nginx/libnginx-mod-http-upstream-fair_1.11.9-0+xenial0_amd64.deb nginx/libnginx-mod-http-xslt-filter_1.11.9-0+xenial0_amd64.deb nginx/libnginx-mod-mail_1.11.9-0+xenial0_amd64.deb nginx/libnginx-mod-stream_1.11.9-0+xenial0_amd64.deb nginx/nginx-full_1.11.9-0+xenial0_amd64.deb