Blogs

DNN Performance Tip: Disable Unused Auth Providers

06 Feb

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.

tags: DNN, DNN Administration
comments powered by Disqus

Content provided in this blog is provided "AS-IS" and the information should be used at your own discretion.  The thoughts and opinions expressed are the personal thoughts of Mitchel Sellers and do not reflect the opinions of his employer.

Connect with Mitchel

I hope the information here has been helpful. To stay connected you can also subscribe to blog updates via email, contact Mitchel about consulting services, or reach out for assistance via CodeMendor

Content Copyright

Content in this blog is copyright protected.  Re-publishing on other websites is allowed as long as proper credit and backlink to the article is provided.  Any other re-publishing or distribution of this content is prohibited without written permission from Mitchel Sellers.