Support » Plugin: Redis Object Cache » wp config question

  • Resolved fashionbuyernetwork


    When setting up wp-config for unix sockets
    WP_REDIS_PATH (default: not set)

    is the proper setup?
    define( ‘WP_DEBUG’, false );
    define(‘WP_ALLOW_MULTISITE’, true);
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    define(‘DOMAIN_CURRENT_SITE’, ‘’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);
    define(‘WP_REDIS_PATH’ , unix:///home/sys/redis.sock);
    /* That’s all, stop editing! Happy publishing. */

    And am I defining in the right area or does it go to the top of wp-config?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Till Krüss


    Looks good, except for one to many slashes, no?

    I personally never use sockets.



    define(‘WP_REDIS_CLIENT’, ‘predis’);
    define(‘WP_REDIS_SCHEME’, ‘unix’);
    define(‘WP_REDIS_PATH’, ‘///home/sys/redis.sock’);
    define(‘WP_REDIS_DATABASE’, ‘0’);
    define(‘WP_CACHE_KEY_SALT’, ‘wp_’);
    define(‘WP_REDIS_SELECTIVE_FLUSH’, ”);
    define(‘WP_REDIS_MAXTTL’, ‘86400’);
    define(‘WP_REDIS_DISABLED’, ”);

    Still cannot connect

    Plugin Author Till Krüss


    I’m still seeing three forward slashes in your config. Try using two.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp config question’ is closed to new replies.