Title: Object cache and WP predefined constants
Last modified: April 8, 2022

---

# Object cache and WP predefined constants

 *  Resolved [testdev777](https://wordpress.org/support/users/testdev777/)
 * (@testdev777)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/object-cache-and-wp-predefined-constants/)
 * Hi, when setting up Redis object cache plugin on WordPress, do i need to set 
   up:
 * define(‘WP_CACHE_KEY_SALT’, ‘example.com’);
    define(‘WP_CACHE’, true);
 * constants in wp-config.php using recent CMS core version or older?

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

 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/object-cache-and-wp-predefined-constants/#post-15540932)
 * `WP_CACHE_KEY_SALT` is outdated, you can use `WP_REDIS_PREFIX` if you want.
 * `WP_CACHE` is not relevant to object caching, it’s for page caching.
 *  Thread Starter [testdev777](https://wordpress.org/support/users/testdev777/)
 * (@testdev777)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/object-cache-and-wp-predefined-constants/#post-15540955)
 * Thanks!

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

The topic ‘Object cache and WP predefined constants’ is closed to new replies.

 * ![](https://ps.w.org/redis-cache/assets/icon-256x256.gif?rev=2568513)
 * [Redis Object Cache](https://wordpress.org/plugins/redis-cache/)
 * [Support Threads](https://wordpress.org/support/plugin/redis-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/redis-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redis-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redis-cache/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [testdev777](https://wordpress.org/support/users/testdev777/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/object-cache-and-wp-predefined-constants/#post-15540955)
 * Status: resolved