• Resolved Bryan

    (@weeklykorea)


    Thank you for useful plugin.

    I have a question.

    I installed “Redis Object Cache”on my website and I found this plugin makes “wp” keys in redis memory.

    Below “wp’ keys, there are many sub folders like “comment, options, comment queries… etc.”

    And I have a question.

    If my webserver runs many domains(wordpress websites) and install this plugin,

    the keys of same name of many wordpress websites’ are not conflicted?

    ex) “a.com and b.com and c.com” have same “wp:comment:1” key.

    Won’t names with the same key structure conflict with each other?

    Thank you for Reading.

    Kindly,

    June

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • use :

    define(‘WP_REDIS_CONFIG’, [
    ‘prefix’ => ‘name-site’,
    ‘host’ => ‘127.0.0.1’,
    ‘port’ => 6379,
    ‘database’ => 0, // change for each site
    ‘maxttl’ => 3600 * 24 * 7, // 7 days
    ‘timeout’ => 1.0,
    ‘read_timeout’ => 1.0,
    ‘prefetch’ => true,
    ‘split_alloptions’ => true,
    ‘strict’ => true,
    ‘debug’ => false,
    ‘compression’ => ‘zstd’,
    ]);

    can ‘database’ => 0, // change for each site be a word or must it be a number?

    on https://github.com/rhubarbgroup/redis-cache/#configuration,

    WP_REDIS_DATABASE0The database used by the cache: 0-15

    is this the same thing? Meaning, am I limited to 15 sites on one vps?

    I tried modifying the options and when i view the diagnostics I see ‘PhpRedis: Not loaded’; I’ve installed redis on my system already with lz4.

    Any help welcomed

    define('WP_REDIS_CONFIG', [
    'prefix' => 'NAC',
    'host' => '127.0.0.1',
    'port' => 6379,
    'database' => 0, // change for each site if needed
    'maxttl' => 3600 * 24 * 7, // 7 days
    'timeout' => 1.0,
    'read_timeout' => 1.0,
    'prefetch' => true,
    'split_alloptions' => true,
    'strict' => true,
    'debug' => false,
    'client' => 'phpredis',
    'igbinary' => true,
    'compression' => 'lz4',
    ]);

    • This reply was modified 1 month, 1 week ago by nfable.
    Plugin Author Till Krüss

    (@tillkruess)

    Correct you need to specify a WP_REDIS_DATABASE (0-15, can be increased) for each site when using Redis Object Cache.

    Using a prefix is much slower.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.