You are currently viewing How to Fix Cache Time Issue on cPanel with NGINX

How to Fix Cache Time Issue on cPanel with NGINX

Fix Cache Time Issue on cPanel, By default, ea-nginx caches successful page loads for an hour.  If you wish to change that value, you can do so with the following steps.

Procedure

1. Use your favorite text editor to update the file /etc/nginx/ea-nginx/cache.json.  The section that needs to be updated says this by default:

"proxy_cache_valid" : {
     "200 302" : "60m",
     "404" : "1m"
  },

Change the 60m to the value you want.  In this case, we’ll change it to 30m: 

"proxy_cache_valid" : {
     "200 302" : "30m",
     "404" : "1m"
  },

2. Run the following command: 

/scripts/ea-nginx conf --all

Jobair Alam Bipul

I'm Jobair Alam, a cPanel Certified WHM/cPanel server administrator and web hosting expert with over 10 years of experience in the industry.

Leave a Reply

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

HostArmada - Affordable Cloud SSD Web Hosting