FORCE BLOGENGINE.NET TO UPDATE ITS CACHE AFTER AN IMPORT
Well my first real post on BlogEngine.Net is…about BlogEngine.Net!
After running the import program from my old DotNetNuke blog I found that the importer had worked, but that the blog entries had not shown up. This was because the cache that BE.Net uses for the XML data files. Since I’m on a shared hosting I couldn’t just run an IISReset.exe, so I obviously needed a work around, and here it is:
- Open default.aspx.cs in Visual Studio (or just a text editor)
- Add the following to the Page_Load function:
Save and upload default.aspx.cs, refresh your blog.
Et voila, posts will appear. Phew.