168 pointsSerious WPMU DEV-sterI'm new here
targetd
Member
—
13th April 2011 (1 year ago)
After researching various caching options, I decided to go with the Wordpress W3 Total Cache plugins and PHP APC Cache.
I am running Wordpress 3.1 and have multisite enabled. I have installed W3 Total Cache on my main website. My understanding is that W3 Total Cache works in part by adding a lot of rules to your web root .htaccess access files. It is also my understanding that rules applied to your web root's .htaccess file will be applied to all your multisite websites.
(In other words, enabling gzip compression in mydomain.tdl/.htaccess will enable gzip compression for blog1.mydomain.tdl, blog2.mydomain.tdl, etc.)
Do I also need to enable W3 Total Cache for all sites?
After researching various caching options, I decided to go with the Wordpress W3 Total Cache plugins and PHP APC Cache.
I am running Wordpress 3.1 and have multisite enabled. I have installed W3 Total Cache on my main website. My understanding is that W3 Total Cache works in part by adding a lot of rules to your web root .htaccess access files. It is also my understanding that rules applied to your web root's .htaccess file will be applied to all your multisite websites.
(In other words, enabling gzip compression in mydomain.tdl/.htaccess will enable gzip compression for blog1.mydomain.tdl, blog2.mydomain.tdl, etc.)
Do I also need to enable W3 Total Cache for all sites?
Yes, it needs to be activated individually on each subsite. Even with W3 Total Cache inheriting settings, it can still be a bit tricky configuring it for multisite. If your users will be novices, it might be overwhelming for them.
We chose Quick Cache because it can be installed once and does not need to be installed or activated for subsites. Yet it still allows individual users to clear their caches if you activate a hidden feature. (I can explain that if you're interested.)
This is a tough proposition if you have a large amount of sites .... we're holding off and sticking with WP Super Cache until some of the kinks are worked out with W3 so that it scales with multi sites better ...
wpcdn, thanks for letting my know about QUick Cache. How are you finding the performance?
Tracy, I've heard the opposite with regards to WP Super Cache - that it have cause problems.
In my own research, the two best comparison of caching plugins are:
we're holding off and sticking with WP Super Cache
@Tracy, the problem with WP Super Cache on multisite is that there is no control over individual blog caching. If a sub-site admin changes themes, the cache is not cleared. So you're likely to get support tickets asking why some pages still show the old theme (until the cache expires).
Quick Cache, on the other hand, automatically clears the sub-site cache on a theme change or certain other actions. And, with a hack (which I can provide instructions for if you like), you can add a "Clear Cache" button to each sub-site's Dashboard.
wpcdn, thanks for letting my know about QUick Cache. How are you finding the performance?
@targetd, my pleasure. Performance is excellent, especially when used in conjunction with other speed-enhancing techniques such as CDN, opcode caching, etc.
I've heard the opposite with regards to WP Super Cache - that it have cause problems.
We have never experienced any issues other than the limitations mentioned above. I think recent versions are very reliable.
@wpcdn
Could you provide the instruction for allowing single blogs to clear a cache with Quick Cache? Been looking for this ability everywhere and have held off adding cache plugins until I can do that.
Wanted to add a quick addendum to the filter allowing users to clear the cache in Quick Cache.
Just saw that when users are logged into the main site, even as just subscribers, the link was showing up. Maybe not a huge deal but no one user should be able to delete the entire network's cache, especially just subscribers.
Instead of just returning true, I added a quick function to make sure it only shows on people's own sites:
add_filter( 'ws_plugin__qcache_ms_user_can_see_admin_header_controls', 'blogsite_user_can_see_admin_header_controls' );
function blogsite_user_can_see_admin_header_controls() {
global $current_user;
if ( current_user_can( 'delete_posts' ) )
return true;
else
return false;
}
I used 'delete_posts' but add whatever capability you want to make sure someone has high enough user level to be able to clear their blog's cache.
And for the others asking here...
LOVE Quick Cache. It just works. It's easy, never had a glitch like I've had with other cache plugins. It speeds everything up as advertised, allows users to clear their own blog... All good in what I have seen so far!
@WPCDN how are you using quick cache with CDN. It doesn't appear that is supported. Is there another plugin that needs to be installed.
Also, I'm interested in finding configuration instructions so that Quick Cache will serve up a CACHED version for a mobile. In other words it should create two cached versions for each page one for desktop and one for mobile. I've seen a lot of discussion on how to reject mobile devices to make them show dynamic content but I want their content cached too but just for the smaller screen.
Responses (15)
WPMU DEV Fanatic — 13th April 2011 (1 year ago) #
Hi targetd,
The following thread discusses that though I'm not sure how it's implemented in the current version:
http://premium.wpmudev.org/forums/topic/w3-total-cache-and-wp-multisite-support
I'd say the best place to find out would be through the author.
Lifetime member! — 14th April 2011 (1 year ago) #
I can summarize:
Yes, it needs to be activated individually on each subsite. Even with W3 Total Cache inheriting settings, it can still be a bit tricky configuring it for multisite. If your users will be novices, it might be overwhelming for them.
We chose Quick Cache because it can be installed once and does not need to be installed or activated for subsites. Yet it still allows individual users to clear their caches if you activate a hidden feature. (I can explain that if you're interested.)
HTH,
Mark
Member — 14th April 2011 (1 year ago) #
This is a tough proposition if you have a large amount of sites .... we're holding off and sticking with WP Super Cache until some of the kinks are worked out with W3 so that it scales with multi sites better ...
Member — 14th April 2011 (1 year ago) #
wpcdn, thanks for letting my know about QUick Cache. How are you finding the performance?
Tracy, I've heard the opposite with regards to WP Super Cache - that it have cause problems.
In my own research, the two best comparison of caching plugins are:
http://www.tutorial9.net/tutorials/web-tutorials/wordpress-caching-whats-the-best-caching-plugin/ http://cd34.com/blog/scalability/wordpress-cache-plugin-benchmarks/
Lifetime member! — 15th April 2011 (1 year ago) #
@Tracy, the problem with WP Super Cache on multisite is that there is no control over individual blog caching. If a sub-site admin changes themes, the cache is not cleared. So you're likely to get support tickets asking why some pages still show the old theme (until the cache expires).
Quick Cache, on the other hand, automatically clears the sub-site cache on a theme change or certain other actions. And, with a hack (which I can provide instructions for if you like), you can add a "Clear Cache" button to each sub-site's Dashboard.
@targetd, my pleasure. Performance is excellent, especially when used in conjunction with other speed-enhancing techniques such as CDN, opcode caching, etc.
We have never experienced any issues other than the limitations mentioned above. I think recent versions are very reliable.
Member — 15th April 2011 (1 year ago) #
@wpcdn
Could you provide the instruction for allowing single blogs to clear a cache with Quick Cache? Been looking for this ability everywhere and have held off adding cache plugins until I can do that.
Thanks!
Lifetime member! — 15th April 2011 (1 year ago) #
Glad to:
Install the latest version of Quick Cache:
http://wordpress.org/extend/plugins/quick-cache/
Then create this directory if it doesn't already exist:
/wp-content/mu-plugins/
Create this file:
/wp-content/mu-plugins/qc-hacks.php
Inside the file, add this code:
Member — 18th April 2011 (1 year ago) #
any update on W3 auto scaling for multisite?
besides using the 'default blog' plugin to auto enter w3 settings for new blogs is there a w3 solution?
or is quick cache the solution?
Johnny
Member — 22nd July 2011 (10 months ago) #
Spoke to the dev and they said W3 should have multisite support soon.
Johnny
Member — 26th July 2011 (10 months ago) #
Wanted to add a quick addendum to the filter allowing users to clear the cache in Quick Cache.
Just saw that when users are logged into the main site, even as just subscribers, the link was showing up. Maybe not a huge deal but no one user should be able to delete the entire network's cache, especially just subscribers.
Instead of just returning true, I added a quick function to make sure it only shows on people's own sites:
I used 'delete_posts' but add whatever capability you want to make sure someone has high enough user level to be able to clear their blog's cache.
And for the others asking here...
LOVE Quick Cache. It just works. It's easy, never had a glitch like I've had with other cache plugins. It speeds everything up as advertised, allows users to clear their own blog... All good in what I have seen so far!
Member — 26th July 2011 (10 months ago) #
Hi Marty,
This looks like a good addition. Why not suggest it to the plugin author?
And thank you for sharing. I ve given you some rep points. :-)
Laurent
Lifetime member! — 27th July 2011 (10 months ago) #
@Marty, brilliant! Where did you add that function...in the file created to allow the button?
Rep points given.
Mark
Member — 27th August 2011 (9 months ago) #
Thanks so much for this thread, guys. You probably saved me hours (or days) worth of work tediously configuring W3TC for each blog on our network.
Member — 18th September 2011 (8 months ago) #
@wpcdn @MartyThornley -- I'm having an issue with Quick Cache not clearing the cache for mapped domains.
I started a new thread for it here -- http://premium.wpmudev.org/forums/topic/domain-mapping-quick-cache-cant-clear-cache-manually?replies=1#post-132596
If you get a sec, plz take a look. You may have seen the same issue if you're also using Domain Mapping.
Member — 12th January 2012 (4 months ago) #
@WPCDN how are you using quick cache with CDN. It doesn't appear that is supported. Is there another plugin that needs to be installed.
Also, I'm interested in finding configuration instructions so that Quick Cache will serve up a CACHED version for a mobile. In other words it should create two cached versions for each page one for desktop and one for mobile. I've seen a lot of discussion on how to reject mobile devices to make them show dynamic content but I want their content cached too but just for the smaller screen.
Become a member