• Resolved vanessa6297

    (@vanessa6297)


    I am not able to activate the wp page caching. I see the following message when I toggle the button on.

    Could not turn on the WP_CACHE constant in wp-config.php. Check your permissions.

    I am using Bluehost for my hosting service. I am uncertain of how to activate the cache.

    • This topic was modified 3 years, 11 months ago by vanessa6297.
Viewing 6 replies - 1 through 6 (of 6 total)
  • @vanessa6297 It looks like due to file permissions error, WP-Optimize is unable to add the constant to wp-config.php file.

    Can you please reset the permissions to 0644 for wp-config.php file?

    If you are unable to reset the permissions then please add the following line just after <?php in wp-config.php file

    define('WP_CACHE', true); // WP-Optimize Cache

    Thread Starter vanessa6297

    (@vanessa6297)

    How would I go about resetting the permission to the file? I’ve never done that before.

    @vanessa6297 You can do it using cPanel file manager, browse to public_html folder and right click on the wp-config.php file, you should see change permissions, click it and set the file permissions to 0644.

    Or you can manually edit the file and add following line just after <?php

    define('WP_CACHE', true); // WP-Optimize Cache

    Thread Starter vanessa6297

    (@vanessa6297)

    OK thank you I’ll try that. If I have any other issues I’ll ask again.

    Thread Starter vanessa6297

    (@vanessa6297)

    the issue was resolved thank you again for your help.

    Hi, I am having the same issue with error message ” Could not turn on the WP_CACHE constant in wp-config.php. Check your permissions.”

    I have tried setting the file permissions to 0644 and also adding the line “define(‘WP_CACHE’, true); // WP-Optimize Cache” but nothing seems to be working.

    Anything else I can do?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WP_CACHE constant error message’ is closed to new replies.