DNN Performance Tip: Disable Unused Auth Providers 

One of the most common questions I get regarding DotNetNuke performance is; "Why is the DotNetNuke login so slow?".  Well there are a number of reasons, but one of the most common issues is that every time you visit the login page it has to determine which provider to show you.  If you are using multiple providers, there is not much way around this.  However, if you are running a site that is NOT using any other providers, you have some options to really help speed up the performance of your login page.

Taking my business site as an example, http://www.iowacomputergurus.com, the login page this morning was taking around 4.5-5.5 seconds to load, by far the slowest page on ANY of my sites.  Looking at what I provide I am only using the standard DotNetNuke authentication.  However, when logging in as the Host user I find under "Host" -> "Host Settings" that both the OpenId and LiveId providers are "enabled".  With them being enabled, their DLLs are loaded and they are queried to determine if they should be displayed on every visit to the login page.  Simply un-checking the "Enabled" box on both has reduced the load time of the login page to about 2 seconds, a much more reasonable number!

Sadly this is a configuration element that many people do not consider, as they believe since they are not using it that it isn't affecting anything.  So my recommendation is to disable ALL providers that you are NOT using, DotNetNuke due to obligations with the providers will not be "disabling" them by default so for the time being it is a configuration option that we must set!

Please share any comments/feedback below, if you have specific implementation questions pleas visit the forums.

Posted by Mitchel on Friday, February 06, 2009
 

Comments

Neat little tip Mitch ... I never thought of that!

By Tom Kraak on Friday, February 06, 2009 at 11:29 AM

Nice catch Mitchel. If you happen to be using v5.0, that setting is located under 'Host > Extensions'. There you must edit the provider and uncheck the 'Enabled' selection.

By cjsmitty on Sunday, February 08, 2009 at 2:37 AM

Great point!

By mitchel.sellers@gmail.com on Sunday, February 08, 2009 at 5:51 AM

Hi guys, I have applied all of Mitchel Sellers tips for performance but still I have an issue.
See after applying the performance suggestions I did get a good speed boost while I am logged in as an Admin, but when I am logged in as a normal user which only shows a small portion of the website, it is much slower. For example, it takes 21 seconds to load most pages.
Would anyone have a idea as to why this is so?
Thanks for any help.
jean-yves

By jya on Wednesday, February 11, 2009 at 3:02 PM

Awesome tip! I think we have all been missing this one. I am going to have to work it in to my "Admin Tips & Tricks" presentations. ;)

By Will Strohl on Thursday, February 12, 2009 at 5:46 PM
Click here to post a comment

Disclaimer