NGINX Cache + WP Super Cache: How to leverage them

To get the most from your caching solution, it's important to understand and optimise them!


In our stack, there are 2 different caching systems that produce 4 caches per website/account.

  1. WP Super Cache (WPSC): Regular Cache
  2. WP Super Cache (WPSC): Supercache
  3. NGINX Reverse Proxy: User Cache
  4. NGINX Keys Zone: Memory Cache
    1. Stores the cache metadata

By default, we deploy WPSC configuration that should produce both types of WP Super Cache.

Auto-purging (preload of WPSC) occurs once every 24 hours, which equals the NGINX validity period.


If you're developing a website, you'll want to disable both types of caching at their core:

  1. WPSC (both types): WP-Admin > Settings > WP Super Cache > Easy > DISABLED
  2. NGINX User Cache: cPanel > top-right corner (info area) > Toggle NGINX Cache OFF

Once you're done with the build and have changed its domain to production, etc, you can undo the above.


Updating any post/s or page/s should trigger an update of the WP Super Cache.

For websites that have frequent updates we also recommend you override the Preload timer in WP Super Cache.

These content and preload updates will trigger an NGINX User Cache purge action, though it can take a while.

As for having a direct WordPress integration, cPanel report that WordPress Toolkit seems eager to pursue it.
https://features.cpanel.net/topic/22571-nginx-user-cache-simple-plugin-to-purge-from-within-wordpress-wp


If you have any queries please feel free to reach out to our Tech Support crew!

  • 0 users found this helpful
Was this answer helpful?

Similar, and hopefully helpful

Resolvers / DNS: Choosing the best set for your servers

While there are many options available, we recommend Quad9 and Cloudflare DNS in that order....

Key-based auth: Making your own SSH-RSA key-pair for the 1st time

Passwords are all well and good, though in this modern world it pays to go the extra mile. You...

LiteSpeed Cache: Managing your sites via the WHM Plugin

It's easy to keep tabs on your different websites & accounts. LiteSpeed helps you keep...

Packages & LVE: Designing hosting plans for your clients

Are you puzzled with how to cut through the numbers and design effective hosting plans? Let's...