Paper Lantern for cPanel accounts is being retired this year. Find out more »
cPanel & WHM Version 102 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

NGINX Manager - Flush or disable nginx cache at a subdomain level

Joseph Crowell shared this idea 8 months ago
Not Planned

Many sites have a development subdomain on a host along side the main site domain. Changes to the javascript on the subdomain require a cache flush in NGINX before they will take effect. When developing this can happen every 10 minutes and results in the production site's cache being constantly flushed, affecting performance. It would be great to alleviate this issue by being able to flush or disable cache for NGINX on a subdomain level.

Replies (1)

photo
1

Hi Joseph,

I understand you are wanting to keep cache up for your production site and also disable caching for the staging and development of the same site. Unfortunately we are not able to get to this request at this time, however I am interested to see if this request gets more votes, and also to add some information that might be able to help you. If you are able to create a second cPanel account for site development, then you have a workaround available:

On a server in which the admin has enabled the Nginx Caching feature, caching is controlled at the cPanel account level. On the cPanel index page, one can choose to clear the cache by finding the 'clear cache' button in the General Information panel. Through API, there are a few more options available. https://api.docs.cpanel.net/openapi/cpanel/tag/NginxCaching/

Leave a Comment
 
Attach a file