WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
2 Sets of Page Cache core code for multisite? (6 posts)

  1. robnalexpress
    Member
    Posted 2 years ago #

    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 0.9.2.4 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} =sitename.com". Just don't remember it being set up this way before.

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. robertstaddon
    Member
    Posted 2 years ago #

    I have the exact same question. I don't remember it being set up this way before either. I think it's new in 0.9.2.4. 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.

  3. robnalexpress
    Member
    Posted 2 years ago #

    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.

  4. brasofilo
    Member
    Posted 2 years ago #

    @robnalexpress

    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?

    thanks!

  5. robnalexpress
    Member
    Posted 2 years ago #

    @brasofilo-

    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.

  6. brasofilo
    Member
    Posted 2 years ago #

    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>
    <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresByType text/css A31536000
        [..many other Expires..]
    </IfModule>

    thanks again

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic