Opened 11 years ago

Last modified 8 years ago

#417 new enhancement

ngx_cache_purge

Reported by: Steve Weber Owned by:
Priority: minor Milestone:
Component: nginx-core Version: 1.3.x
Keywords: Cc:
uname -a:
nginx -V: nginx version: nginx/1.4.1 (Ubuntu)
TLS SNI support enabled
configure arguments: --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --with-pcre-jit --with-debug --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-mail --with-mail_ssl_module --add-module=/build/buildd/nginx-1.4.1/debian/modules/nginx-auth-pam --add-module=/build/buildd/nginx-1.4.1/debian/modules/nginx-dav-ext-module --add-module=/build/buildd/nginx-1.4.1/debian/modules/nginx-echo --add-module=/build/buildd/nginx-1.4.1/debian/modules/nginx-upstream-fair --add-module=/build/buildd/nginx-1.4.1/debian/modules/ngx_http_substitutions_filter_module

Description

would be nice to include in core

Change History (3)

comment:1 by Steve Weber, 11 years ago

ngx_cache_purge

comment:2 by https://stackoverflow.com/users/573152/bernard-rosset, 10 years ago

I do not know if the name of the module file to be included is relevant, but since this ticket remained open, I will re-use it.

It would be very useful to any website owner to a full-fledged cache working in nginx. Having limited support is nice already, but since you do not provide any way of purging cache in nginx FOSS, that means people who would like to use nginx' cache system must only rely on timeouts...

Please bring official support for purge in every relevant module (proxy, fastcgi, uwsgi, others?) so one could stop using Varnish for good...

The only existing third-party solution has a weird syntax and... is not built in official packages people who struggle with maintenance nightmare tend to exclusively use.

Without it, nginx cache cannot be used properly without without either:

  • Using third-party modules
  • Use dirty hacks (shell script finding/deleting cache files on the filesystem)
  • Purging the whole thing with a restart (well that is currently the only way to do it through nginx FOSS...)

comment:3 by Neil Craig, 8 years ago

+1 on this

Note: See TracTickets for help on using tickets.