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