• Resolved catuyen

    (@catuyen)


    Hello,

    I have one VPS with Redis server installed. All my WP sites are using Litespeed cache and I configure them to use Redis object cache by enter the configuration like below for all sites.

    127.0.0.1

    Port: 6379

    Connection status: Connected.

    My question is: Do I need to do anything else?

    I ask this question because in the past, when I used Redis Object Cache, i have set Redis prefix for each site like this define( 'WP_REDIS_PREFIX', 'mydomain.net' );

    So, How about Litespeed cache plugin?

    Thanks
    U

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

    (@joy0114)

    Hi,

    I think you have to specify the ID of the REDIS database in Litespeeed configuration (menu “cache” > tab “object”). Of course, one number different for each website.
    Otherwise, it produces some undesirable effects…

    Best regards

    • This reply was modified 11 months ago by joy0114. Reason: syntax
    Plugin Support qtwrk

    (@qtwrk)

    the prefix it always random generated based on site path , ref: https://github.com/litespeedtech/lscache_wp/blob/cf7c7592787f8b317996051f27716ee016552b57/src/object.lib.php#L458

    the “undesirable effect” on this is one site can access the data of other sites , which consists certain security risk

    you should set up DB and AUTH from Redis if you want to use multiple sites to same single redis

    my personal practice is set up multiple redis instance, one per site , with unix socket method , and Linux’s file system ownership/permission will protect it from unauthorized access by other site users

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘One Redis, multiple WordPress sites with Litespeed Cache installed’ is closed to new replies.