Will "the Mighty" Strohl

HOW TO: Clear the Cache in DotNetNuke (DNN)

Although for many of you, it may be very elementary as to how you would clear the cache in DotNetNuke (DNN), this is simply not the case for everyone out there.  It is for this reason that I thought it would be a good idea to blog about it.

Clearing the cache should be done for only a few different reasons, as the cache will automatically update itself over time anyhow.  For instance, if you change the Host/Site/Tab/Module settings data manually in the database, your changes will not be reflected on the site until the cache is cleared and the data is renewed (cached again).

There a few different ways to do this:

  1. Open the Web.Config. Add a line break somewhere in a way that still allows the Web.Config file to be well-formed XML.  Save the file.
  2. Login as a "host" on the portal.  Go to the Host Settings page in the Host Menu.  Click the "Restart Application" link at the bottom of the Host Settings page.
  3. (Windows 2003 Server only) Right click on the Application Pool where your site resides, and choose "Recycle". (Please note that this will also recycle all other apps that are in the same Application Pool)

That's all there is to it!  Have fun!



blog comments powered by Disqus