WP Super Cache is one of the most installed plugins for WordPress. It heavily reduces server load and speeds up website load times. If you are a WordPress user, you must be familiar with the merits of this plugin. After updating to WordPress’ latest version, have you had a look at the plugin settings recently? Well if you have not, you had better check it quick.
A couple of days ago, while I went to the settings page for the plugin to clear the cache, I was surprised to see that there were 0 pages in cache. I then deactivated the plugin and then reactivated it. Upon reactivating, the plugin gave me an error that asked to move the define(‘WP_CACHE’, true); to the top.
I then checked my wp-config.php file and found that the above line was after some commented lines but still at the top of other codes. Actually it should have worked fine but still i moved the line to the top, i.e. just after the opening php tag and uploaded it. I then deactivated the super cache plugin and reactivated it. Now when i went to its settings page, the error was gone and it started working normally.
Thus if you have encountered this error on wp super cache, just move the define(‘WP_CACHE’, true); line after the opening php code and it should work.