Forums

[resolved] Multi-site and browser cache prevents mapped domain from loading (9 posts)

  1. frisco
    Member
    Posted 1 year ago #

    I have multi-site setup (sub-domains) with MU Domain Mapping and have a domain mapped to it. I have W3 TC enabled on the primary domain but not on the mapped sub-domain.

    It seems that every day or so, the mapped domain will have a problem loading. The browser will show it loading, and the status bar will start with a reference to the mapped domain (like it should), then switch to the primary domain. The progress bar will get to the point of showing that the site is nearly loaded, then go back to the beginning. The mapped domain will never load - that is, until I clear the browser cache. After clearing the browser cache, the site loads fine.

    Other than a few links in a custom menu, there aren't any reference to the primary domain on the mapped subdomain.

    Any idea why the browser cache could be causing this problem?

  2. frisco
    Member
    Posted 1 year ago #

    I'm still seeing this problem, but this occurred to me: the sites I'm seeing this on are under active development. Could that be the issue?

    The consistent fix is to clear the browser cache, but I'd really like to have a better fix because a typical web browser might not go to that trouble.

    Anyone have any thoughts on where I can look further?

  3. Tim Moore
    Code Wrangler
    Posted 1 year ago #

    I've seen in a couple of places that W3TC doesn't support domain mapping. Those were older posts (about 10-11 months old), but I'm still not seeing domain mapping support listed as a feature of W3TC.

    WP Super Cache does support domain mapping, so it may be worth looking at switching.

  4. frisco
    Member
    Posted 1 year ago #

    Thanks, Tim, but I don't have W3 TC enabled on the sites I'm seeing the error on.

    I have W3 TC enabled on the primary domain, but I never see errors here.

    I don't have W3 TC enabled on any of the mapped sub-domains, but this is where I see the errors.

    Maybe you are suggesting that since W3 TC doesn't support domain mapping, and my mapped subdomains might need to communicate with the primary domain, W3 TC cache is the problem? Maybe my problem is having the browser cache enabled on W3 TC, so the solution might be to disable that on the primary domain. Interesting thought...

  5. If your sites are subfolder (versus subdomain), I wonder if you would have to tell W3TC to NOT cache the subfolder names in the main site...

  6. frisco
    Member
    Posted 1 year ago #

    Another interesting thought, but no, mine are definitely subdomains.

    After Tim's suggestion, I did a little more digging and found this thread on W3 TC and domain mapping.

    2 things were different from my config: remote login and redirect admin pages to original domain.

    I had both enabled, but the thread suggests to disable both. I've made that change and I'll see if it works. Me and my W3 TC browser cache are good buddies, and I can't just dump him too quickly.

  7. Yeah, I'm fond of it too :)

    Let us know how it works! I may need to know that ;)

  8. frisco
    Member
    Posted 1 year ago #

    My reaction so far is that it works.

    My original problem report indicated that the problem occurred on a regular basis for a variety of users with different browsers, but it didn't happen every time the site was accessed.

    Since changing these settings (for which there is a basis to think there is a connection), the problem has never happened again. That's not conclusive proof that the fix actually corrected the problem (as we all know, it's not a static world), but it's good enough for me.

    I feel a little like a guy who crossed his fingers while walking under a ladder and the ladder didn't fall on his head, so I am going to keep crossing my fingers and doing this on similar installs because ladders can hurt my head.

    Thanks for the help, Tim & Ipstenu.

  9. Frederick Townes
    Member
    Posted 3 months ago #

    Anyone still having this issue?

Topic Closed

This topic has been closed to new replies.

About this Topic