Purging the NGINX cache ensures that users receive the most up-to-date content by removing outdated or potentially problematic cached data. This action is essential when troubleshooting issues related to outdated content and broken links, or when implementing changes like updates, new features, or fixes to the website.
Clearing the cache early may be important when making large changes to the website and not seeing those changes reflected on the live site. This can also be helpful for troubleshooting site issues when the error or SSL certificate is cached.
Here, we explain how to clear the NGINX cache on the Control Web Panel (CWP) server using the command line.
Purge NGINX Cache
IMPORTANT: This solution will require root access. If this needs to be obtained, follow the guide on requesting root access.
- SSH into the relevant server as root
- Run the command
rm -rf /var/cache/nginx/*to remove the cache - Run the command
service nginx restartto restart the NGINX service
Comments
0 comments
Article is closed for comments.