Introduction
There might be a time that you may need to clear a user's Nginx cache if it is showing a page that is either not correct or out of date. Below are the steps on how to do this.
Procedure
Per the documentation located at:
cPanel Docs: The ea-nginx Script » Clear the NGINX cache
Clear the NGINX cache
To clear a user’s NGINX cache, run the following command:
/usr/local/cpanel/scripts/ea-nginx clear_cache [options]
You can use the following options with this script:
Options
|
Description | Example |
---|---|---|
user |
Clear the NGINX cache for one or more users.
Note:
You must pass either the
user or --all option, but not both. |
clear_cache user1 user2 |
--all |
Clear the NGINX cache for all users on the system. | clear_cache --all |