• Resolved Nifty

    (@niftythree)


    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

    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)
  • Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi @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

    (@niftythree)

    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

    (@wpmudevsupport12)

    Hi @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

    (@niftythree)

    Hi,

    OK, thank you. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Redis Configuration’ is closed to new replies.