Site Health error: WP_CACHE is set to false
Sometimes in the Site Health tool you may see this message:
WP_CACHE is set to false. The WP_CACHE constant needs to be set to true for WP Rocket cache to work properly
This message is a false positive if you are using one of the hosts below. For these hosts, page caching is disabled because it's handled at the server level, and WP_CACHE is set to false deliberately. All other optimizations will still be applied.
- WP Engine
- DreamPress
- WordPress.com
- Pressable
If you are not using one of those hosts, please check the following:
- The wp-config file must be writeable
- Make sure the WP_CACHE definition is at the top of the file, after the opening
<?php
tag