Seeing “WP_CACHE is not enabled in your wp-config.php” on the WP Super Cache settings page? That message means WordPress is not loading the code that serves cached pages. The WP_CACHE constant is either missing, set to false, or defined where WordPress never sees it.
The fix is simple: define WP_CACHE once, in the right place, with the right value. Then make sure no other plugin or host setting is fighting it.
WP Super Cache shows “WP_CACHE is not enabled in your wp-config.php” and caching stays off. How do I turn this on correctly?
If you are wondering what is broken: WordPress is loading without caching support. WP Super Cache is telling you it cannot see define( 'WP_CACHE', true ); in the right place inside wp-config.php.
WordPress only loads full page caching when the WP_CACHE constant is set to true in wp-config.php. That constant tells WordPress to load the advanced-cache.php drop-in from wp-content/, which is how WP Super Cache hooks in.
When that does not happen, WP Super Cache shows a notice like:
WP_CACHE is not enabled in your wp-config.php
Most of the time, one of these is true:
WP_CACHE is missing from wp-config.php completely.WP_CACHE is defined but set to false, or defined below the wp-settings.php line so WordPress never sees it.WP_CACHE from other caching plugins or host tools.wp-config.php because of file permissions.We will start with the clean “turn it on” fix, then handle conflicts and hosting quirks.
If you are comfortable editing files, this is the direct fix.
wp-admin and wp-content live), find wp-config.php.wp-config.php in a plain text editor.require_once ABSPATH . 'wp-settings.php';define( 'WP_CACHE', true ); // Enable caching for WP Super Cache
If everything is correct, the warning should disappear and WP Super Cache should report that caching is enabled.
If you still see “WP_CACHE is not enabled” even after adding the line, you probably have one of these situations:
WP_CACHE is defined more than once.WP_CACHE behind your back.wp-config.php from where you think it is.wp-config.php again.WP_CACHE.define( 'WP_CACHE', true );false or sit below wp-settings.php.Also check for “smart quotes” if you pasted from a styled editor. You want straight single quotes: 'WP_CACHE', not curved ones.
It is easy to end up with old caching remnants:
wp-content from previous plugins.wp-content/ for files like:
advanced-cache.phpwp-cache-config.phpadvanced-cache.php from another plugin, back it up, then replace it with the one that comes with WP Super Cache (or let WP Super Cache recreate it by deactivating and reactivating the plugin).Once there is only one caching plugin in charge and WP_CACHE is set to true, the notice should clear.
On some installs, WordPress core lives in a subfolder or one level up from your web root. In that case, WP Super Cache uses a small check to find the “real” wp-config.php.
If you edited a different copy (for example, one in the wrong directory), WordPress may still be loading an older file without the new WP_CACHE line.
wp-config.php (for example /home/account/wp-config.php vs /home/account/public_html/wp-config.php).define( 'WP_CACHE', true ); to that file as well, above the wp-settings.php require.After that, reload the WP Super Cache settings page and test again.
If WP Super Cache keeps telling you it could not update wp-config.php or WP_CACHE is not enabled, your wp-config.php file might be read only.
wp-config.php.If you manage your own server, you can adjust it temporarily:
cd /path/to/your/site
chmod 644 wp-config.php
Then:
WP_CACHE remains set to true in wp-config.php.On shared or managed hosting, ask your host to:
wp-config.php writable long enough to add WP_CACHE, ordefine( 'WP_CACHE', true ); for you.Some managed hosts handle page caching at the server level and intentionally keep WP_CACHE set to false. They often recommend against running extra page cache plugins.
If you are on a host like WP Engine, WordPress.com, or another managed platform with their own caching layer:
WP_CACHE on.In that setup, the notice is more of a reminder than a bug: WordPress core is telling you page caching is off because the host is doing it elsewhere.
You are in good shape when:
define( 'WP_CACHE', true ); line in the active wp-config.php, above the wp-settings.php require.wp-content/cache/supercache/ folder starts filling with cached files when you browse the site.Hit Continue Chat below and send me:
wp-config.php (with passwords removed).I will help you confirm which wp-config.php is active and how to safely define WP_CACHE there.
Scroll down to the contact form below. Enter your name, email, and WordPress needs. Atiba will get back to you as soon as possible.
WP Assistant is a free tool created by Atiba Software, a WordPress design and development company located in Nashville, TN. If you need more personalized WordPress assistance let us know, and we’ll get back to you ASAP!