Nov27Written by:Will Strohl
11/27/2007

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.
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:
- 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.
- 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.
- (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!
Tags:4 comment(s) so far...
Hi Will,
In option 1 you don't even need to put/remove a line break. If you type a space, then delete it, save the file. Your done.
If you happen to be using Visual Studio for this - Question? What's Visual Studio doing oan a production web server, but I digress - do NOT try to be clever by using undo to remove your space. VS realizes you are returning the file to it's original state and might not actually save it. I'll leave testing that to find if VS does/doesn't save the file to someone else. By Richard Howells on
2/16/2009 |
VS.Net does not necessarily need to be on the server to be used for this purpose (think shared hosting).
I have never had a problem with spaces being saved, but I typically use line breaks anyhow. By Will on
2/16/2009 |
Hi Will, Step 1) is not needed, Step 2) does excatly the same, it touches web.config to recycle the application. By Stefan Cullmann on
3/7/2009 |
Hey Stefan. Those are not "steps." They are options. Any one of the 3 options will do the same thing for us. I should also mention that if a module programmer is reading this, they have a 4th option. They can simply call the following code: DotNetNuke.Common.Utilities.Config.Touch() By Will on
3/7/2009 |