Knowledge.ToString()

How to enable CDN in DNN (DotNetNuke) 9?

I could not find UI to enable CDN in DNN (DotNetNuke) 9. I used SQL script in order to make a change. These settings are host level changes and affects all the portals.

UPDATE dbo.HostSettings
SET SettingValue='Y', LastModifiedOnDate = GETDATE()
WHERE SettingName='CDNEnabled'

UPDATE dbo.HostSettings
SET SettingValue='Y', LastModifiedOnDate = GETDATE()
WHERE SettingName='EnableMsAjaxCDN'

Once you make the change, you need to restart the application in order to make it effective.

Share

Comments

3 responses to “How to enable CDN in DNN (DotNetNuke) 9?”

  1. Tim Ramlogan Avatar
    Tim Ramlogan

    Thanks…This worked. I’m using version 9.6

  2. Armin Avatar
    Armin

    Thanks, but not working at all

    1. Vishal Monpara Avatar
      Vishal Monpara

      Hello Armin,

      This CDN is enabled only for certain specific scripts which already have CDN path defined within database. I had it is working by making the mentioned changes and restarting the application. I had to trace the source code in order find this change. If it is not working for you, please explore source code and search for “CDNEnabled” and “EnableMsAjaxCDN” to check what could cause the issue for your setup.

      Regards,
      Vishal Monpara

Leave a Reply

Your email address will not be published. Required fields are marked *