• Resolved dgambill

    (@dgambill)


    I’ve got a multisite install and one of the child sites is using BuddyPress and bbpress. I would like to use this site for caching my network, but I am unsure as to what I should add to my .htaccess file, as each site has unique settings on the HTTP tap.

    I’m not sure which settings I had used previously, but the users on my child site (the one with bbpress) were having issues with getting logged out.

    https://wordpress.org/plugins/gator-cache/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author GatorDog

    (@gatordog)

    The way GatorCache works now, every child site would have to have it’s own configuration. However, you’d want to install it on the main site and network activate it, rather than installing it on every child site. As far as the htaccess or http caching, it should work if you have a sub-directory install. Place the recommended rules in the main document root and it should pickup the child sites as well. For a subdomain install, you’d probably have to modify the recommended rules, since they check the host name.

    Thread Starter dgambill

    (@dgambill)

    I have a subdomain install, and I guess there in lies the problem, as I would have no idea how to modify the recommended rules. If I activate it on each site instead of network wide, would I just copy the rules for each site to the .htaccess?

    Plugin Author GatorDog

    (@gatordog)

    Actually for the subdomain install, you’d just use the recommended rules from the main site. However, you’d have to modify the lines that begin with “RewriteCond %{HTTP_HOST}” to include all the host names. I just released an update for the plugin today, however, in the next update, within about a week, I’ll set it to automatically generate these rules for a multisite subdomain install.

    Thread Starter dgambill

    (@dgambill)

    I got the update this morning, and what I’ve done for the time being is network activated it and then added this code to the .htaccess:

    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access 1 year"
    ExpiresByType image/jpeg "access 1 year"
    ExpiresByType image/gif "access 1 year"
    ExpiresByType image/png "access 1 year"
    ExpiresByType text/css "access 1 month"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType text/x-javascript "access 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 1 month"
    </IfModule>
    ## EXPIRES CACHING ##

    My Google Pagespeed score jumped from 75 to 86 on my child site. My parent site is still in the 70’s, but I think that has to do with the theme than caching.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Configuration Question’ is closed to new replies.