Purge the Nginx cache

Sergey A. Osokin osa at freebsd.org.ru
Tue Apr 26 20:38:47 UTC 2022


Hi Kaushal,

On Tue, Apr 26, 2022 at 11:54:01PM +0530, Kaushal Shriyan wrote:
> Hi Sergey,
> 
> I have gone through the document
> https://docs.nginx.com/nginx/admin-guide/content-cache/content-caching/ to
> purge nginx cache in nginx OSS version: nginx/1.20.2  as a reverse proxy
> server on CentOS Linux release 7.9.2009 (Core). I encounter
> 
> nginx: [emerg] unknown directive "proxy_cache_purge" in
> /etc/nginx/conf.d/default.conf:75
> nginx: [emerg] unknown directive "proxy_cache_purge"
> 
> Please guide me. Thanks in advance.

Accoring to the ngx_http_proxy_module documentation [1], the proxy_cache_purge
directive is available as part of the commercial subscription.

References:
[1] https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_purge

-- 
Sergey A. Osokin



More information about the nginx mailing list