• Resolved donlee101

    (@donlee101)


    Hi,

    i’m thinking of setting up redis server for object caching.

    I’m not sure about few things.
    I’m hosting multiple sites on plesk server.

    1. Database prefix
    On some guides i found this define(‘WP_CACHE_KEY_SALT’, ‘anyUniqueString’); //Added for Redis Cache

    Is this needed ? Or w3 total cache generates string from the domain name?

    2. Database ID
    Shall I use a different redis database ID for each wordpress site? Or leave default 0

    3. non persistent groups
    On some guides, they recommended to add _woocommerce something i can’t find it now.
    is this necessary?

    Many thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @donlee101

    Thank you for your inquiry and I am happy to assist you with this.

    1. WP_CACHE_KEY_SALT is used in other plugins, not W3 Total Cache. You need to install phpredis in order to be able to use it in W3 Total Cache.
    2. It’s usually suggested that you have a separate instance for each app (Website), but you can use the same Redis for multiple apps if you wanted to. You might want to look into using something like Redis-store as it will allow you to set up separate namespaces for the keys in Redis, or you could just prefix your key manually.
    3. In some cases yes. You can add a specific group to Performance>Object Cache> non-persistent groups if you want those objects not cached.

    Thanks!

    Thread Starter donlee101

    (@donlee101)

    Thank you Marko.

    So if I decide to use the same instance for all sites.. When I then purge cache on one site, will it purge the cache per site or the whole redis cache?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @donlee101

    Thank you for your question.
    THe plugin should only clear the files for the specific website.
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Setting up Redis object cache’ is closed to new replies.