Black Friday Black FridayUp to 85% off all WP Ghost plans.48 months from $49, or pay once for lifetime. SHOP NOW

Does WP Ghost Work with All Cache Plugins?

Moved

This tutorial has moved to the new WP Ghost Knowledge Base where each feature is presented in detail.

View on new site

Yes. WP Ghost works with the common cache and performance plugins and detects many of them to map their cache folders. With any cache plugin, switch on Change Paths in Cached Files and clear the cache after you save WP Ghost settings.

Which cache plugins has WP Ghost been tested with?

WP Ghost is periodically tested with: WP Rocket, W3 Total Cache, WP Super Cache, WP Fastest Cache, LiteSpeed Cache, Autoptimize, Cache Enabler, CDN Enabler, Breeze Cache, Comet Cache, Hummingbird, Hyper Cache, Powered Cache, NitroPack, Bunny CDN, Jetpack (Site Accelerator), Cache-Control, JCH Optimize 3, SWIS Performance, WP Speed of Light, SiteGround Optimizer, Rabbit Loader Cache, and FlyingPress.

For the complete and current list, see the compatible plugins list.

Why do cache plugins need special attention?

Cache plugins save pre-rendered HTML files containing the actual paths to your CSS, JavaScript, plugins, themes, and uploads. When WP Ghost changes these paths, live page output uses the new custom paths, but cached HTML files still reference the old WordPress defaults until they’re regenerated. Without coordination, visitors would see cached pages exposing /wp-content/plugins/ and /wp-content/themes/ even though WP Ghost is active.

Many cache plugins also combine and minify CSS and JavaScript files into new files stored in their own cache directories. WP Ghost needs to know about these directories to rewrite the paths inside them.

How do I configure WP Ghost to work with my cache plugin?

Two steps handle most cache plugin setups:

Step 1: Enable Change Paths in Cached Files. Find the Change Paths in Cached Files box in the right sidebar of WP Ghost > Change Paths (it shows when a cache plugin is active) and switch it on. WP Ghost then rewrites the paths inside the files your cache plugin generates, so they use your custom paths. Click Save.

Step 2: Clear your cache. After saving WP Ghost settings, purge your cache plugin’s cache completely. This forces new cached files to be generated with the correct paths. Do this after every WP Ghost path change.

WP Ghost automatically detects popular cache plugins (WP Rocket, LiteSpeed Cache, Autoptimize, and others) and creates URL mappings for their cache directories. You don’t need to configure these manually. For specific setup guides, see the WP Ghost and WP Rocket guide or the WP Ghost and LiteSpeed Cache guide.

What if my cache plugin isn’t on the tested list?

A cache plugin missing from the list isn’t necessarily incompatible: WP Ghost doesn’t change any files, so most plugins work. Switch on Change Paths in Cached Files, clear your cache, and check in a private window that the new paths appear in the page source. If you find a problem, contact WP Ghost support.

Frequently asked questions

Do I need to clear my cache every time I save WP Ghost settings?

Only when you change paths. Cached files contain path references that won’t update until the cache is regenerated. After any path change in WP Ghost, clear your cache plugin’s cache, any server-level cache (Varnish, Nginx FastCGI), and your CDN cache if applicable.

Old WordPress paths still appear in the page source after enabling WP Ghost. Why?

Almost always a caching issue. Clear all caches (browser, plugin, server, CDN), then check again in a private browser window. If old paths only appear in combined/minified CSS or JS files, make sure Change Paths in Cached Files is enabled. If it’s already on, try regenerating the minified files through your cache plugin’s purge option.

Does WP Ghost slow down my cached site?

No. WP Ghost changes paths with server rewrite rules (Apache, LiteSpeed) or while the page is built (Nginx, WordPress). Once your cache plugin has generated the files with the new paths, visitors get them straight from the cache. WP Ghost also turns bad bot requests away early, before the page is built.

Does WP Ghost modify WordPress core files?

No. WP Ghost uses server rewrite rules and WordPress filters. No core files, theme files, or plugin files are modified. Compatibility with cache plugins is maintained through URL mapping and output buffering, not file changes. Deactivating WP Ghost restores all defaults instantly.