Support » Plugin: W3 Total Cache » [Plugin: W3 Total Cache] 2 Sets of Page Cache core code for multisite?

  • Is it normal to have 2 Sets of Page Cache core code in public_html/.htaccess for a 2 site multisite with domain mapping? While upgrading to I inserted the code requested on one site and then disk enhanced page caching for the other site would be disabled, and vice versa. I don’t remember having 2 sets of code previously, but after adding them both, everything seems to be working fine.

    It makes sense, I guess, since each set has specific references to a different site, such as “RewriteCond %{HTTP_HOST}”. Just don’t remember it being set up this way before.

Viewing 5 replies - 1 through 5 (of 5 total)
  • I have the exact same question. I don’t remember it being set up this way before either. I think it’s new in I’m concerned because this seems to be breaking a measure of compatibility with WordPress multisite. I have dozens of sites set up and I don’t want think I need all this multiple sets of code in my .htaccess file.

    If you have lots of sites that does make for a lot of additional code, but the up side is that you no longer have to change the page cache settings for every single site (so they’re all identical) for it to work. I recently changed the settings for one of my sites and all I had to do was replace the page cache core code for that one site.




    i’ve seen your orientation in other threads, but would like to confirm that this stands:
    – all MS domains must have W3 running?
    – and with the same configuration?





    It has been my experience that the sites with w3tc enabled do not perform well unless it is enabled on all sites in the network.

    With the latest version, the configuration, at least for page cache, does not seem to need to be the same since the plugin creates separate page cache core in htaccess. However, the other settings may need to be identical on all sites for it to work properly. The only way to know for sure is to experiment with different settings.



    ok, robanalexpress,
    but then, what if i have a site in development?
    shall i turn W3 on and leave it in preview mode?

    and while we are at it, do you know why this block of commands sometimes appears, sometimes not… in the install screen, within the rewrite rules Browser Cache block…

    <IfModule mod_mime.c>
        AddType text/css .css
        AddType application/x-javascript .js
        [..many other AddTypes..]
    <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresByType text/css A31536000
        [..many other Expires..]

    thanks again

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: W3 Total Cache] 2 Sets of Page Cache core code for multisite?’ is closed to new replies.