Support » Plugin: Redis Object Cache » Question about subdirectory sites

  • Resolved michaeledi


    Thanks for the brilliant plugin! I have a question about the subdirectory sites: I have 2 sites (, one is in subdirectory( How should I set up the redis cache?

    I found one answer in another support thread:

    If the object-cache.php dropin is in your wp-content directory, then object caching is enabled for all network sites

    So does that mean if I place the object-cache.php in the /wp-content folder in main site and activate the plugin in main site, the site in subdirectory will automatically be cached?

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


    Nah, if it’s not a real multisite network, then you need to install the plugin on both sites individually.

    Make sure you’re using different database indices WP_REDIS_DATABASE for each sites.

    @tillkruess Thanks! Does that mean I need to create a different database in MySQL and move my subfolder site tables to that database? Currently I stored two sites datatables in same databse using different table prefix..

    @tillkruess Ignore my previous question please, I found answers: I just need to define ‘WP_REDIS_DATABASE’ to a different value (for example, 1) in subfolder site’s wp-config, right?

    Plugin Author Till Krüss


    Yep, glad you got it solved 🙂

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