• Resolved michaeledi

    (@michaeledi)


    Hi,
    Thanks for the brilliant plugin! I have a question about the subdirectory sites: I have 2 sites (example.com), one is in subdirectory(example.com/sub). 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

    (@tillkruess)

    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.

    Thread Starter michaeledi

    (@michaeledi)

    @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..

    Thread Starter michaeledi

    (@michaeledi)

    @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

    (@tillkruess)

    Yep, glad you got it solved ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Question about subdirectory sites’ is closed to new replies.