Title: Redis Configuration
Last modified: September 1, 2021

---

# Redis Configuration

 *  Resolved [Nifty](https://wordpress.org/support/users/niftythree/)
 * (@niftythree)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/redis-configuration/)
 * Hi,
 * We would like to use Redis through Hummingbird and would like to verify if our
   setup below in wp-config.php is correct. Redis is installed, running and connected
   through Hummingbird. We will be using BuddyPress also, so we have added exclusions
   for those pages as shown below and as suggested here – [https://wpmudev.com/docs/wpmu-dev-plugins/hummingbird/#integrations](https://wpmudev.com/docs/wpmu-dev-plugins/hummingbird/#integrations)
 *     ```
       define('WP_CACHE', true);
       define('WP_CACHE_KEY_SALT', 'domainnamehere.com');
       define( 'WPHB_REDIS_HOST', '<IP here>' ); // Added by Hummingbird
       define( 'WPHB_REDIS_PORT', <Port Number here> ); // Added by Hummingbird
       define( 'WP_REDIS_IGNORED_GROUPS', [
           "bp_pages"
       ] );
       ```
   
 * In particular, must these lines be added to the wp-config.php file also?
 *     ```
       define('WP_CACHE', true);
       define('WP_CACHE_KEY_SALT', 'domainnamehere.com');
       ```
   
 * We’re asking because many online articles suggest we add the two lines above,
   but we don’t see it being recommended in the documentation of the plugin.
 * Thanks.

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

 *  [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/redis-configuration/#post-14826430)
 * Hi [@niftythree](https://wordpress.org/support/users/niftythree/),
 * `define('WP_CACHE', true);`
    Will be already added by Hummingbird if you have
   enable Page Caching in the plugin, it just adds a comment after the define so
   it looks like this in WP config: `define( 'WP_CACHE', true ); // Added by Hummingbird`
   I suggest that you check your wp-config.php file to see if you have both of those,
   and if you do, remove one of them.
 * `define('WP_CACHE_KEY_SALT', 'domainnamehere.com');`
    This is only required if
   you have multiple WordPress sites that share same Redis installation.
 * Hope this helps 🙂
 * Cheers,
    Predrag
 *  Thread Starter [Nifty](https://wordpress.org/support/users/niftythree/)
 * (@niftythree)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/redis-configuration/#post-14826496)
 * Hi,
 * Thanks for your reply. 🙂
 * We won’t be using Page Caching. In this case, should we keep the single `define('
   WP_CACHE', true);` that we added to the wp-config.php file? Essentially, the 
   question then becomes, do we need the above line in the wp-config.php file for
   Hummingbird to correctly interact with Redis?
 * Thanks.
 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/redis-configuration/#post-14831892)
 * Hi [@niftythree](https://wordpress.org/support/users/niftythree/)
 * I hope you are doing well.
 * Our developer confirmed, it is not necessary to keep the define(‘WP_CACHE’, true);
   when using the Redis
 * Best Regards
    Patrick Freitas
 *  Thread Starter [Nifty](https://wordpress.org/support/users/niftythree/)
 * (@niftythree)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/redis-configuration/#post-14834117)
 * Hi,
 * OK, thank you. 🙂

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

The topic ‘Redis Configuration’ is closed to new replies.

 * ![](https://ps.w.org/hummingbird-performance/assets/icon-256x256.gif?rev=2633221)
 * [Hummingbird Performance - Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN](https://wordpress.org/plugins/hummingbird-performance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hummingbird-performance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hummingbird-performance/)
 * [Active Topics](https://wordpress.org/support/plugin/hummingbird-performance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hummingbird-performance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hummingbird-performance/reviews/)

## Tags

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

 * 4 replies
 * 3 participants
 * Last reply from: [Nifty](https://wordpress.org/support/users/niftythree/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/redis-configuration/#post-14834117)
 * Status: resolved