Hummingbird placing define('WP_CACHE', true); in the bottom of wp-config

I've somewhat recently been noticing that Hummingbird's been placing the define('WP_CACHE', true); line too far down in the wp-config file for Hummingbird to recognize it.

Most of the time I can clear the cache and the warning will go away, but it won't always. For example, I tried clicking on the "clear cache" button on the Page Caching page a few times and nothing. I clicked the larger "clear cache" dropdown/insert above and it worked this time.

I'm not sure if it's coincidental or if there's an actual effect, but I've found that it tends to work when I clear the cache after I've removed all of the auto insert info from the wp-config area.

  • Dimitris Kalliris
    • Support Team Lead

    Hello splaquet,

    hope you’re doing good today! :slight_smile:

    First of all, I’d like to inform you that I moved this thread to our Support forums instead of the Members forums, which are mainly used for getting feedback from other WPMUDEV members and not about getting support from our team, despite the fact that we also track Members forums as well.

    No, about the define(‘WP_CACHE’, true); line in wp-config.php, as long as it’s above the /* That’s all, stop editing! Happy blogging. */ comment, then it’s good.

    I also tried to replicate the error about the missing line, but I couldn’t. As soon as I activated the Page Caching, the line got added in wp-config.php just above the /* That’s all, stop editing! Happy blogging. */ comment and both “clear cache” buttons work well.

    Deactivating Page Caching altogether, removes the line.

    As this may be happening in your end due to some file permissions issue or some conflict with another plugin, please double check that wp-config.php file (and any other WP file) has set permissions like 644 or 640 (ref: https://codex.wordpress.org/Changing_File_Permissions#Shared_Hosting_with_suexec) and if so, consider grabbing a recent website backup (files and database) and proceed with any conflict test as shown here: https://wpmudev.com/wp-content/uploads/2015/09/Support-Process-Support-Process.gif

    Warm regards,

    Dimitris