WP Super Cache is enough whenever every anonymous visitor to a URL can receive the same HTML file. In Expert mode on Apache a rewrite rule sends that file before PHP starts — the same delivery path as the plugins people upgrade to. Configure it deliberately, then prove the hit with curl rather than trusting the settings screen. It stops being enough for four reasons: most traffic is logged in, WooCommerce needs cart and checkout per request, the same URL must vary per visitor, or the slow pages are the logged-in ones no page cache touches. If you have not picked a plugin yet, the head-to-head comparison settles each pairing; this article assumes WP Super Cache and asks whether to stay.
What you’ll accomplish
- Follow a request through WP Super Cache and see where each delivery mode stops it.
- Configure Expert mode end to end, including the restrictions that keep shared HTML away from logged-in sessions.
- Prove from the command line that PHP is not running on a hit.
- Recognise the four signals that mean the page cache is no longer the layer to tune.
Prerequisites
WordPress 6.x on PHP 8.1 or later, with WP Super Cache 1.12 or newer from the plugin directory. You need shell access to the document root, permission to write .htaccess and wp-config.php, and WP-CLI as wp (command reference). Run the header checks from your own machine: a loopback request often skips whatever sits at the edge.
Know your web server first, because it decides which mode is available. Apache with mod_rewrite runs Expert mode. Nginx has no .htaccess, so Expert mode is real only if someone wrote the matching location block into the vhost; otherwise you are on Simple mode whatever the radio button says. Examples assume a site rooted at /var/www/example.com. Back up .htaccess and wp-config.php first.
How it works
WP Super Cache saves the finished HTML of a URL to a file and sends it to the next visitor asking for that URL. Everything interesting is in who reads it back, because that decides how much of PHP runs first.
Expert mode writes a rewrite block into .htaccess between # BEGIN WPSuperCache and # END WPSuperCache, above the WordPress block. Apache tests the request — no wordpress_logged_in_, comment_author_ or wp-postpass_ cookie, no query string, a GET — and if all of that holds, maps the URL to wp-content/cache/supercache/example.com/<path>/index.html and serves it as a static file. PHP is never invoked. It is the cheapest hit a plugin can produce, and the least aware: a rewrite condition tests whether a cookie name is present, little more.
Simple mode relies on define( 'WP_CACHE', true ); in wp-config.php. WordPress loads wp-content/advanced-cache.php early in wp-settings.php, before the theme and every other plugin; the drop-in prints the cached file and exits. You pay a PHP process per hit, and the cache sees the real request — cookies, headers, query string — before deciding what to serve. On Nginx, and anywhere mod_rewrite is not dependable, this is the correct choice.
Both modes share one store and both need WP_CACHE defined, because the legacy WP-Cache layer still runs inside PHP for requests the rewrite refuses: logged-in visitors, query strings, POST. Expert mode never means PHP stops running — only that it stops on the requests the rewrite may answer. That store has two shapes: plain HTML at wp-content/cache/supercache/<host>/<path>/index.html (plus index.html.gz with compression on), and wp-cache-<hash>.php files under wp-content/cache/. Files in the first and none in the second is normal for an anonymous content site; the reverse means the static-file path is not being used.
Step-by-step
1. Confirm the delivery mode your server supports. This decides the rest:
curl -sSI https://example.com/ | grep -i '^server:'
apachectl -M 2>/dev/null | grep rewrite_module
server: Apache
rewrite_module (shared)
An nginx header, or an empty second line, means Expert mode is unavailable; a plugin configured for a rewrite path that does not exist falls back to PHP silently.
2. Install the plugin and turn caching on. Install from the shell, then set Settings, WP Super Cache, Easy tab to “Caching On (Recommended)”:
wp plugin install wp-super-cache --activate
grep -E '^\$(cache_enabled|super_cache_enabled) ' wp-content/wp-cache-config.php
$cache_enabled = true;
$super_cache_enabled = true;
$cache_enabled is the plugin as a whole; $super_cache_enabled is the static-file layer. First true and second false means caching through PHP only — the usual reason a “cached” site is slow.
3. Switch to Expert mode and let the plugin write the rules. On the Advanced tab set Cache Delivery Method to Expert, then press “Update Mod_Rewrite Rules” in the box that appears. Never hand-write that block; the plugin matches the conditions to your $cache_path and host.
grep -n 'WPSuperCache' /var/www/example.com/.htaccess
grep -E '^\$wp_cache_mod_rewrite ' /var/www/example.com/wp-content/wp-cache-config.php
1:# BEGIN WPSuperCache
38:# END WPSuperCache
$wp_cache_mod_rewrite = 1;
The block must sit above # BEGIN WordPress. Apache reads .htaccess top down and WordPress’s front-controller rule ends in [L], so a block underneath is dead configuration that still reports as enabled.
4. Set the cache restrictions. Still on the Advanced tab; the shipped defaults are not all correct:
- “Don’t cache pages for known users. (Recommended)” — on. This keeps shared HTML away from a logged-in session.
- “Don’t cache pages with GET parameters. (?x=y at the end of a url)” — on; in Expert mode those URLs cannot be supercached anyway.
- “Compress pages so they’re served more quickly to visitors. (Recommended)” — on, unless something in front already compresses.
- “Cache rebuild. Serve a supercache file to anonymous users while a new file is being generated. (Recommended)” — on, or a purge under traffic pushes every visitor into PHP.
- “Clear all cache files when a post or page is published or updated.” — off on a large site; it empties the store on every edit.
grep -E '^\$(wp_cache_not_logged_in|wp_cache_no_cache_for_get|cache_compression|wp_cache_clear_on_post_edit) ' wp-content/wp-cache-config.php
$wp_cache_not_logged_in = 2;
$wp_cache_no_cache_for_get = 1;
$cache_compression = 1;
$wp_cache_clear_on_post_edit = 0;
$wp_cache_not_logged_in at 2 is what you want: known users are neither served from the cache nor written into it.
5. Set expiry and garbage collection. Under “Expiry Time & Garbage Collection”, Cache Timeout is $cache_max_time in seconds — 1800 suits a news site, 86400 a brochure site. The Scheduler below it deletes expired files, on WP-Cron:
grep -E '^\$cache_max_time ' wp-content/wp-cache-config.php
wp cron event list --fields=hook,next_run_relative | grep -i cache
$cache_max_time = 1800;
wp_cache_gc 28 minutes
A missing wp_cache_gc event is why cache directories reach tens of gigabytes. WP-Cron fires on traffic, so on a quiet site set DISABLE_WP_CRON to true and run wp cron event run --due-now from system cron.
6. Warm the cache.
wp super-cache preload
find wp-content/cache/supercache -name 'index.html' | head -3
wp-content/cache/supercache/example.com/index.html
wp-content/cache/supercache/example.com/pricing/index.html
wp-content/cache/supercache/example.com/blog/index.html
Files under supercache/ prove the static-file layer works; an empty directory under traffic sends you back to step 2.
Validate it works
First, confirm the HTML is replayed rather than rebuilt. WP Super Cache stamps the document with the moment the file was generated, so a hit repeats the same timestamp:
for i in 1 2; do curl -sS https://example.com/ | grep -o 'Cached page generated by WP-Super-Cache on.*'; sleep 2; done
Cached page generated by WP-Super-Cache on 2026-08-16 13:41:07 -->
Cached page generated by WP-Super-Cache on 2026-08-16 13:41:07 -->
A timestamp that advances on every request means each visitor is rebuilding the page.
Second, isolate the rewrite path. A URL with a query string cannot match the Expert-mode conditions, so it is forced through PHP — a controlled comparison on the same page:
curl -o /dev/null -sS -w 'static ttfb=%{time_starttransfer}s\n' https://example.com/
curl -o /dev/null -sS -w 'via-php ttfb=%{time_starttransfer}s\n' 'https://example.com/?bust=1'
curl -sSI https://example.com/ | grep -iE '^(etag|accept-ranges|content-encoding):'
static ttfb=0.071s
via-php ttfb=0.486s
etag: "3f1a-63c1e0a7b2c40"
accept-ranges: bytes
The gap between the first two lines is what Expert mode is worth on your hardware; if they match, Apache is not serving the file whatever the setting says. ETag and Accept-Ranges: bytes come from Apache’s static-file handler, which PHP output does not emit.
Third, prove a logged-in session never gets the shared document, and that publishing invalidates it:
curl -sS -b 'wordpress_logged_in_probe=1' https://example.com/ | grep -c 'Cached page generated by WP-Super-Cache'
wp post create --post_title='Cache probe' --post_status=publish --porcelain
find wp-content/cache/supercache -name 'index.html' -newermt '-1 minutes'
0
4187
wp-content/cache/supercache/example.com/index.html
Zero is the only acceptable answer to the first command, and the fresh home-page file proves invalidation fired on publish. Clean up with wp post delete 4187 --force.
Troubleshooting
The rewrite block exists but nothing is served from it. Check its position: above # BEGIN WordPress. Then check AllowOverride permits FileInfo — an .htaccess Apache is not reading is silent. Then confirm $cache_path matches the real path; the plugin bakes it into the rules, so a site moved between servers keeps rules pointing at a directory that is gone.
Nothing clears when an editor publishes. With “Clear all cache files” off, only the changed post and its archives clear, so an editor watching an unrelated page concludes nothing happened; verify with find instead. If a CDN also holds the HTML, the plugin cleared its own copy and never told the edge.
Logged-in users are served a cached page. Confirm $wp_cache_not_logged_in is not 0, then look at the cookie that reached the origin: Expert mode matches a cookie name prefix in a rewrite condition, so a proxy stripping cookies defeats it. Check too for a “cache everything” edge rule caching HTML above WordPress.
URLs with query strings never get cached. By design in Expert mode: the rewrite requires an empty query string, so /?utm_source=newsletter always reaches PHP. If most inbound traffic carries campaign parameters, strip them at the edge, or set $wp_cache_no_cache_for_get to 0 and let the PHP layer handle them.
The cache directory keeps growing. Check for the wp_cache_gc event as in step 5. If preload mode disables garbage collection on preloaded files, expiry never applies and only a fresh preload replaces them. Note that wp cache flush empties the object cache and leaves these files untouched:
du -sh wp-content/cache/supercache wp-content/cache
wp super-cache flush
When this is the wrong approach
Four signals mean the page cache is no longer the layer worth tuning. One is enough, and they concern what varies per request, not traffic volume.
Most of your traffic is logged in. Memberships, LMS platforms, intranets and portals bypass the page cache by design, and correctly so. If most page views carry a wordpress_logged_in_ cookie, tuning it only improves the minority that was already fast.
WooCommerce cart, checkout and fragments. Cart totals, /checkout/, /my-account/ and the header mini-cart must be answered per request. WP Super Cache can exclude those paths, but exclusion is all it does; it cannot serve a cached shell and fill the cart in afterwards. Incomplete exclusions produce cart bleed — one shopper’s items rendered for another.
The same URL has to vary per visitor. A/B tests, geographic pricing, currency by country: one file per URL has no key to vary on. Expert mode has no notion of a variant, and Simple mode needs custom code to build one. Do that variation at the edge, where a cache key can include a header, or in the client.
Your slow pages are the logged-in ones. A fast home page and a six-second dashboard is a database problem. WP Super Cache ships no object cache and never has; the fix is Redis or Memcached under WordPress, and object cache versus page cache tells the two symptoms apart.
Two cases sit outside the list. A server-level cache already in front — LSCache, an Nginx FastCGI cache, Varnish — makes a plugin page cache underneath it a step backwards. And a Core Web Vitals complaint is rarely a caching complaint: Largest Contentful Paint is decided by images, fonts and third-party JavaScript.
None of this is a verdict on the plugin: a content site with anonymous readers, one file per URL and Apache in front is the shape it was built for.
Running WordPress that earns real money deserves an operator — Stack Harbor runs that stack under Enterprise WordPress; book an infrastructure consult.