FastCGI Cache + WooCommerce on HestiaCP NGINX WordPress Template

Hi Hestia community,

I’m setting up a WordPress site with WooCommerce on HestiaCP using the NGINX WordPress template.

My goals are:

  1. Properly caching all pages for non-logged-in visitors.

  2. Avoid caching dynamic pages like /cart/, /checkout/, /my-account/, and logged-in users.

  3. Integrate Nginx Helper for automatic cache purge and Cache Preloader to pre-fill the cache.

My nginx.conf already has FastCGI cache and buffer/gzip settings.

My main questions:

  • Does the NGINX WordPress template already handle WooCommerce bypass correctly, or do I need to manually add the $no_cache map and fastcgi_cache_bypass / fastcgi_no_cache rules?

  • Any recommendations for integrating Nginx Helper and Cache Preloader on HestiaCP without breaking WooCommerce?

Thanks in advance for any advice or example configurations.

Related topics

1 Like