Question
How to flush Nginx cache for a website in Plesk?
Answer
Since Plesk 18.0.45 version it is possible to clear cache from Plesk GUI:
- Log in to Plesk
- Go to Domains > example.com > Hosting & DNS > Apache & Nginx settings and click "Clear cache" button:
Click on a section to expand
If update to Plesk 18.0.45 is not possible for some reason, flush Nginx cache manually:
-
Connect to the server via SSH.
-
Remove cache files:
# rm -rf /var/cache/nginx/example.com_*/*