Title: WP_CACHE constant
Last modified: January 2, 2024

---

# WP_CACHE constant

 *  Resolved [islp](https://wordpress.org/support/users/islp/)
 * (@islp)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/wp_cache-constant/)
 * Hello, a couple of questions. Does the plugin declare somewhere the WP_CACHE 
   constant? Can I add the constant to my wp-config file?

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

 *  Plugin Author [OllieJones](https://wordpress.org/support/users/olliejones/)
 * (@olliejones)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/wp_cache-constant/#post-17315875)
 * Thanks for the question.
 * The `WP_CACHE` constant, which you might choose to declare in your `wp-config.
   php` file, relates to [page caching](https://developer.wordpress.org/advanced-administration/performance/cache/#caching-plugins),
   not [object caching](https://developer.wordpress.org/reference/classes/wp_object_cache/#persistent-cache-plugins).
   Therefore this object caching plugin does nothing with it.
 *  Thread Starter [islp](https://wordpress.org/support/users/islp/)
 * (@islp)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/wp_cache-constant/#post-17317131)
 * Thanks. I could not find any docs about WP_CACHE, I only found similar misleading
   method names referring to object caching.
 *  Thread Starter [islp](https://wordpress.org/support/users/islp/)
 * (@islp)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/wp_cache-constant/#post-17326728)
 * [@olliejones](https://wordpress.org/support/users/olliejones/)
 * This is what WP docs say:
 * “Prior to [WordPress 2.5](https://wordpress.org/support/wordpress-version/version-2-5/),
   data stored using the wp_cache functions was stored persistently if you added
   define(‘WP_CACHE’, true) to your wp-config.php file.
 * This is no longer the case, **and adding the define will have no effect** unless
   you install a persistent cache plugin (see examples below).”
 * And, in the “examples below” there’s your plugin too.
 * [https://developer.wordpress.org/reference/classes/wp_object_cache/](https://developer.wordpress.org/reference/classes/wp_object_cache/)

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

The topic ‘WP_CACHE constant’ is closed to new replies.

 * ![](https://ps.w.org/sqlite-object-cache/assets/icon-128x128.jpg?rev=2829632)
 * [SQLite Object Cache](https://wordpress.org/plugins/sqlite-object-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sqlite-object-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sqlite-object-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/sqlite-object-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sqlite-object-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sqlite-object-cache/reviews/)

## Tags

 * [WP_CACHE](https://wordpress.org/support/topic-tag/wp_cache/)

 * 3 replies
 * 2 participants
 * Last reply from: [islp](https://wordpress.org/support/users/islp/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/wp_cache-constant/#post-17326728)
 * Status: resolved