I am getting the error below and the plugin is not working:
WP_CACHE constant added to wp-config.php
If you continue to see this warning message please see point 5 of the Troubleshooting Guide. The WP_CACHE line must be moved up.
I’ve checked out my file and the lines below at the top of the file:
define(‘WP_CACHE’, true);
define( ‘WPCACHEHOME’, ‘/var/www/html/wp-content/plugins/wp-super-cache/’ );
I don’t know exactly when and how this error started. But it probably appeared after I updated my ubuntu version from 16.04 to 20.04 and removed and reinstalled php too due to an problem with PHP versions.
It might not be related though. Could you please help with this?
-
This reply was modified 5 years, 3 months ago by
berrywhy.
Solution: Move the lines below to the very top, just after the opening php tag .
define(‘WP_CACHE’, true);
define( ‘WPCACHEHOME’, ‘/var/www/html/wp-content/plugins/wp-super-cache/’ );
But they are not at the very top but still working on another site. Question to developer, why is that?