How to clear nginx proxy cache

I run wordpress website and the nginx proxy cache works great no complain . But clearing proxy cache is always problematic, I was not able to do easily.

For that i have to go back to hestiapanel disable proxy server for a while and again enable … This path is time consuming .

Is there any way to clear cache either through command line or any plugin any setting . Please help me

Thank you !!

sudo rm /var/cache/nginx

Best option to fix the issue is to add a extra module to Nginx but this will complicate the distribution from our side…

cd /var/cache/
rm -rf nginx
mkdir nginx
service nginx restart

this will clear all the site’s cache, so use it carefully.

You really don’t want to restart your Nginx for clearing you cache…

But agree with the default “Nginx” package its the only way…