How to flush Nginx cache for a website in Plesk?

Since Plesk 18.0.45 version it is possible to clear cache from Plesk GUI:

  1. Log in to Plesk
  2. Go to Domains > example.com > Hosting & DNS > Apache & Nginx settings and click “Clear cache” button:

clear.png

Flushing the Nginx cache can be necessary to ensure that users are getting the most up-to-date content.

Ensures Updated Content:

  • Flushing the cache ensures that users receive the most up-to-date content. This is particularly important after deploying updates or changes to your website or web application.

Improves Performance:

  • Clearing old and possibly corrupted cache files can improve the performance and reliability of your site. It prevents serving outdated or broken content to users.

Resolves Cache-Related Issues:

  • Sometimes, cached content can cause issues such as displaying stale data, incorrect page layouts, or broken functionality. Flushing the cache can resolve these issues.

Frees Up Disk Space:

  • Over time, cache files can accumulate and consume significant disk space. Regularly flushing the cache helps in freeing up disk space, which can be beneficial for overall server health and performance.

Enhances Security:

  • Cached files can sometimes expose sensitive data if not managed properly. Flushing the cache ensures that sensitive information is not stored longer than necessary.

Improves Troubleshooting:

  • When debugging or troubleshooting issues, flushing the cache ensures that you’re testing with fresh data, reducing the risk of cache-related false positives.

Leave a comment

Your email address will not be published. Required fields are marked *