• I get this error and it seems the plugin does not work right now as no page is cached. I checked the wp-config.php file and The WP_CACHE line is just where it should be. How can I fix this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter berrywhy

    (@berrywhy)

    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 4 years, 2 months ago by berrywhy.
    Thread Starter berrywhy

    (@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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP_CACHE constant added to wp-config.php’ is closed to new replies.