Domain Mapping Response Time is Slow


I did a website speed test and the results show that the response time when using domain mapping plugin is very slow. There is a long wait time before requests are handled and returned which is hindering the overall site performance. Once the requests is returned the site loads quickly.

Note: I have an other software (non WP) which is on the same server (dedicated) environment and the response time is much quicker in the 3s mark.

Also I have a single WP install without domain mapping plugin on a smaller server and the response time is also quicker.

Please see image.

How can this be improved?

  • James
    • Site Builder, Child of Zeus

    Under the Domain Mapping settings, if you have Cross-domain autologin set to Yes, you want to make sure that you have the 'Load Cross-domain autologin asynchronously' set to yes as well. We were experiencing this as well and loading that script async helped quite a bit.

  • Katya Tsihotska
    • Support & QA

    Hi northgate

    Hope you had a wonderful day.

    There are settings in Domain Mapping that could be affecting load times, can you go to Settings > Domain Mapping and try turning off these three options and see if it speeds up your load times:

    - Verify domain's DNS settings
    - Check domain propagation before mapping
    - Cross-domain autologin

    Let us know of the results.

    Best regards,

  • northgate
    • The Incredible Code Injector

    Thank for the response,

    By default I already have the following disabled.
    - Verify domain's DNS settings
    - Check domain propagation before mapping

    Based on your suggestions I also disabled .
    - Cross-domain autologin

    However I did not notice any improvements in performance, but as supper admin I then had to log into each site; which is frustrating.

    • Paul Kevin
      • Neo

      Hello northgate ,

      I hope you are well today and thank you for confirming. Domain Mapping has a number of filters that are used to map the correct resources to their respective domains. The process of ensuring that the correct URL's are set when accessing domains could be what is causing the speed issues. For example we use the filter the_content to verify that post content accessed for a mapped domain has the correct URL path and schema when accessed.
      There is no real solution to fix this as it will affect page load time as the plugin functions are mainly dependent on these features. Hope this helps.

      Warm Regards
      Paul Kevin

  • Umesh
    • Site Builder, Child of Zeus


    Northgate I am having the same problem for over a month. I also need a solution. Are you also getting a run around from WPMUDEV Support?

    FAO: Paul Kevin > What are you talking about? The problem affects many users and 100's of my websites. the issue was not their a few weeks ago. You wrote a bunch of blaaa then you finish with "There is no real solution to fix - Hope this helps" WTF !!! Either you help resolve the problem or you escalate it as bug for fixing with HIGH Priority.

    wpmudev SUPPORT - Pull your finger out and progress the issue.

  • James Morris
    • WordPress Enthusiast

    Hello Umesh,

    I'm sorry to hear you're experiencing issues. However, in order to help you better without causing undue interruption to the help that is being offered to northgate, it would be best to contact Support through Live Chat so we can address the unique needs of your particular situation.


    There are a wide range of things that can increase the load time on a multisite network, but yes having Domain Mapping can have an impact as well. Though, my tests indicate Domain Mapping's impact is negligible and can be relieved with setting changes.

    The following test is performed on the following environment.

    1&1 Shared Hosting platform (not known for being particularly fast!)
    PHP 5.6.30 (Not very fast either)
    memory_limit = 256M
    WordPress 4.8
    Domain Mapping

    No other plugins
    Default Theme
    Default Content
    2 Mapped Domains

    All tests performed using Pingdom Tools using the Dallas, TX, USA datacenter

    Test 1:
    * Cross-domain autologin enabled
    * Verify domain's DNS settings enabled
    * Check domain propagation before mapping enabled

    Test 2:
    * Cross-domain autologin disabled
    * Verify domain's DNS settings disabled
    * Check domain propagation before mapping disabled

    Test 3:
    * Domain Mapping entirely disabled

    As you can see, yes Domain Mapping does ad some time to the request handling. This is due to the nature of the plugin interpreting the request and directing it to the appropriate subsite and performing all the background mapping required. Having options like SSO, Verify DNS and DNS propagation check will, of course, add to this because of the nature of those functions. But disabling those does improve performance.

    So, unless you have a need for those features, it would be best to disable them and see if this resolves your problem. On a larger network, this could save a good bit of time in the request handling.

    I hope this clarifies a bit.

    Best regards,

    James Morris

  • scottg
    • Flash Drive

    Dear Support,
    I know this support issue was raised approx 1year ago, however I've seen our Multisite development platform (pre-launch) blow out from under 1s to nearly 1m for simple Admin screens.
    Have deactivated Multi-site for now, but would like to know about the resolution of prior issues.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.