• Resolved HKP

    (@hiskingdomprophecy)


    Hi Folks,

    At the top of the Cache Enabler Settings page I get the warning:
    define('WP_CACHE', true); is not set in wp-config.php.

    And on the WP/ tools/ health check/ info/ WordPress/ WordPress Constants it reads:
    WP_CACHE Disabled

    However my wp-config.php contains the line:
    define('WP_CACHE', true); // Added by Cache Enabler

    And at the bottom of a typical post is reads e.g.:
    <!-- Cache Enabler by KeyCDN @ 15.07.2020 16:02:14 (html gzip) -->

    Cache Enabler is working in spite of the notices to the contrary, and I am wondering what is causing these incorrect error messages.

    FYI, I am using the latest version of WP core and all plugins are up to date.

    I have tried turning off all plugins, but the Cache Enabler and Health Check notices do not change.

    Look forward to your advice.

    Regards and thanks,
    Angus

Viewing 2 replies - 1 through 2 (of 2 total)
  • Anonymous User 16850768

    (@anonymized-16850768)

    Hi Angus,

    To fix this can you please try doing the following:

    1. Temporarily deactivate the Cache Enabler plugin.
    2. Move the snippet added by the Cache Enabler plugin in your wp-config.php file to the top.
    3. Activate the Cache Enabler plugin.
    Thread Starter HKP

    (@hiskingdomprophecy)

    Hi Corey @coreyk

    Thank you for that fix. It worked perfectly!

    Both Cache Enabler and Health Check now report correctly.

    Kudos to whomever found that solution! ??

    Regards and thanks,
    Angus

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘define(‘WP_CACHE’, true); is not set in wp-config.php’ is closed to new replies.