Title: WP_CACHE constant error message
Last modified: December 15, 2020

---

# WP_CACHE constant error message

 *  Resolved [vanessa6297](https://wordpress.org/support/users/vanessa6297/)
 * (@vanessa6297)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/wp_cache-constant-i-error-message/)
 * 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 5 years, 8 months ago by [vanessa6297](https://wordpress.org/support/users/vanessa6297/).

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/wp_cache-constant-i-error-message/#post-13795132)
 * [@vanessa6297](https://wordpress.org/support/users/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](https://wordpress.org/support/users/vanessa6297/)
 * (@vanessa6297)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/wp_cache-constant-i-error-message/#post-13795177)
 * How would I go about resetting the permission to the file? I’ve never done that
   before.
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/wp_cache-constant-i-error-message/#post-13795204)
 * [@vanessa6297](https://wordpress.org/support/users/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](https://wordpress.org/support/users/vanessa6297/)
 * (@vanessa6297)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/wp_cache-constant-i-error-message/#post-13795213)
 * OK thank you I’ll try that. If I have any other issues I’ll ask again.
 *  Thread Starter [vanessa6297](https://wordpress.org/support/users/vanessa6297/)
 * (@vanessa6297)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/wp_cache-constant-i-error-message/#post-13795374)
 * the issue was resolved thank you again for your help.
 *  [waraaa](https://wordpress.org/support/users/waraaa/)
 * (@waraaa)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/wp_cache-constant-i-error-message/#post-14451174)
 * 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.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [waraaa](https://wordpress.org/support/users/waraaa/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/wp_cache-constant-i-error-message/#post-14451174)
 * Status: resolved