• Hi!

    I am trying to use w3-total-cache plugin on multi-site sub-folder setup. I am using a switch_to_blog() function to show featured posts from different blogs on the main blog front page of my site. When I enable w3 total cache on my site all the sub folder sites work properly but image from the featured post from different sub folder site which were being shown on the front page of the main site disappear. I did view source and found that incorrect URL is being created for the images from sub-folder sites. For some reason w3-total-cache is not able to detect that images belong to sub-folder sites and are just being shown on the main site using switch_to_blog() function. URL for images which is being created by w3-total-cache plug-in is trying to fetch images from image folder of the main site (i.e. wp-content/upload…) while images are present in the image directory of the sub-folder site.

    Please let me know if there is a way to fix this problem. I am not able to use this excellent plugi-n just because of this problem.

    Thanks,
    Kamal

Viewing 15 replies - 1 through 15 (of 39 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Two options come to mind.

    Once is to not cache the front page. The other is to setup .htaccess redirects so the image locations are parsed.

    Are you sure it’s the plugin? That is, does it work when the plugin’s turned off?

    Thread Starter upadhyaykamal

    (@upadhyaykamal)

    Yeah this works when plug-in is turned off. I am okay with not caching front page or may be the entire main site but it doesn’t work even if I am enabling plugin only for sub-folder sites. So I can’t use this plugin at all.

    (at the risk of sounding like a broken record on this switch_to_blog thing…)

    Are you using WP3?

    switch_to_blog is not fully functional in WP3. I hesitate to say it’s broken. But, it does not function the same in WP3 as it does in 2.9.2.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    By WP3 he means WordPress 3.0

    I was starting to wonder if that might not be it, xyzzy πŸ™

    (Does magic coolness happen now that I typed your name?)

    Plugh! πŸ™‚

    You know what… I completely disabled W3 Total Cache on my WordPress 3.0.1 install and my permalinks via switch_to_blog are working better. Previously, they were broken and it looked like this issue:

    http://core.trac.wordpress.org/ticket/12040

    But, now, without W3 Total Cache in the picture, the links look as they do on WordPress 2.9.2. Unless I’m going crazy, which is possible. πŸ™‚

    I’m still digging. But, for now, I will keep W3 Total Cache off.

    (For what it’s worth: WP Super Cache does not exhibit this problem)

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Fee Fie Foe Foo

    Interesting. I don’t use switch_to_blog at all and I’ve not had issues with W3TC. I wonder what it could be that breaks it, though. There are a LOT of options with minification etc. Maybe you could play around with those?

    @xyzzy I know you on twitter with a different username, don’t I?

    ha ha. Yes @andrea_r.

    I had the problems with W3 total cache even when I disabled the cache via the plugin settings. The problems went away when I disabled and deleted the plugin itself! Very weird.

    I’m not clear on what module is mis-behaving in W3TC, can you please submit a bug submission form with more details?

    Frederick, sure, I’ll try. πŸ™‚

    Success? Not sure I received it.

    not yet, need to reinstall/configure the plugin in our dev environment to reproduce.

    Ok.

    Thread Starter upadhyaykamal

    (@upadhyaykamal)

    Yes xyzzy is right. I was facing the problem even when I disabled caching from the w3tc plugin. I had to disable and delete the plugin to fix the issue.
    I am not sure if the bug is already submitted.

    Let me know if it has not been submitted and debugging information is required. I have a test setup of my website where I can reproduce the issue.

    Same issue here. W3TC breaks switch_to_blog() and all other cross-blog functions, such as get_blog_permalink(), get_home_url(), get_blog_option(), etc.

Viewing 15 replies - 1 through 15 (of 39 total)
  • The topic ‘[Plugin: W3 Total Cache] w3 total cache multisite setup featured posts on main site from sub sites’ is closed to new replies.