Introduction
You may want to disable the ea-nginx cache that is created for testing purposes or to help troubleshoot any issues you may be having with your domains when using ea-nginx.
Procedure
Open the following file on your server using your text editor of choice:
/etc/nginx/ea-nginx/cache.json
The contents of this file should look similar to this:
{
"enabled" : true,
"inactive_time" : "60m",
"levels" : "1:2",
"logging" : false,
"proxy_cache_background_update" : "on",
"proxy_cache_lock" : "on",
"proxy_cache_min_uses" : 1,
"proxy_cache_revalidate" : "on",
"proxy_cache_use_stale" : "error timeout http_429 http_500 http_502 http_503 http_504",
"proxy_cache_valid" : {
"200 302" : "60m",
"404" : "1m"
},
"x_cache_header" : false,
"zone_size" : "10m"
}
Change the "enabled" option from true, to false. Save and close this file once completed.
Rebuild your ea-nginx configuration for all domains on your server, and restart your NGINX instance running with the following command:
/usr/local/cpanel/scripts/ea-nginx config --all