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