Purge the Nginx cache

Kaushal Shriyan kaushalshriyan at gmail.com
Fri Apr 22 16:33:57 UTC 2022


Hi,

I am running the nginx version: nginx/1.20.2 as a reverse proxy server on
CentOS Linux release 7.9.2009 (Core). Is there a way to purge the cache
without restarting the nginx server? I am reading a blog which says to use
nginx bypass purge cache method instead of manually purging Nginx cache
using the below method.

$sudo rm -rf /var/cache/nginx/*

Please let me know the best recommended way to purge cache. Thanks in
advance. I look forward to hearing from you.

Best Regards,

Kaushal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20220422/1abfc112/attachment.htm>


More information about the nginx mailing list