• We are using the MU Multi-Site plugin. This maps domains to blogs in MU. In cases where the path not set to “/”, we get a unique file name for the w3-total-cache-config file (w3-total-cache-config-PATH.DOMAIN.php). However, in the case where the path is set to “/”, we get w3-total-cache-config.php. This won’t work here, we need to add the domain name to the config file name. Can you point me to the right code to change?

    I assume this may be a problem with the keys in memcached as well.

    http://wordpress.org/extend/plugins/w3-total-cache/

Viewing 11 replies - 1 through 11 (of 11 total)
  • To be clear you’re talking about http://wpmudev.org/project/Multi-Site-Manager right?

    Thread Starter sqlwiz

    (@sqlwiz)

    Good Morning!

    We’re using MU Multi-Site V 0.0.7 from jerseyconnect.net/development.

    Looks like the memcached keys will be okay since w3tc appends the HTTP_HOST when $blog_id is empty. That gave me the idea to modify line 36 in define.php as follows:

    define(‘W3TC_CONFIG_PATH’, WP_CONTENT_DIR . ‘/w3-total-cache-config’ . (($w3_blog_id = w3_get_blog_id()) != ” ? ‘-‘ . $w3_blog_id : ‘-‘ . $_SERVER[‘HTTP_HOST’]) . ‘.php’);

    I’ve just tried it and it seems to be working. Hopefully, you’ll include this or something similar.

    Make sure that VHOST constant is defined in the WPMU settings. In this case domain name will be blog ID; otherwise W3TC tries to detect blog ID from path.

    Thread Starter sqlwiz

    (@sqlwiz)

    VHOST is set to no. Multiple domains are handled by the MU Multi-Site plugin. Blog may or may not be at the top level. That is why nothing was returned. I see someone over on the other thread had this issue two months ago and came up with the same fix. I noticed that W3TC uses the same logic when creating the cache_key in Db.php

    So I think define.php should have this logic.
    define(‘W3TC_CONFIG_PATH’, WP_CONTENT_DIR . ‘/w3-total-cache-config’ . (($w3_blog_id = w3_get_blog_id()) != ” ? ‘-‘ . $w3_blog_id : ‘-‘ . w3_get_domain($_SERVER[‘HTTP_HOST’])) . ‘.php’);

    Can you provide the link to the other forum post, I don’t see it.

    Thread Starter sqlwiz

    (@sqlwiz)

    http://www.w3-edge.com/wordpress-plugins/w3-total-cache/#idc-cover

    Page 2 – Gordon Franke.

    Looks like I was seeing things that are not there, it is not the same – sorry.

    Support for Multi-Site plugin will be added to the next release.

    Thread Starter sqlwiz

    (@sqlwiz)

    Great news!

    It’s possible that the need to support this plugin will disappear in v3.0 of WordPress.

    Thread Starter sqlwiz

    (@sqlwiz)

    That would be great. My current understanding is that WP 3.0 will continue with the current MU configuration:

    Either domain based blogs or subdirectory based blogs, but not both.

    We need to support both types within one install.

    I see.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: W3 Total Cache] w3tc conflict with mu multi-site’ is closed to new replies.