iFinity Blogs 

By Bruce Chapman on Friday, January 30, 2009 10:40 PM
Let me just preface this post with a declaration : I'm talking about caching objects in code, not module or page level caching for outputs.  Module level caching is where the contents of a module are cached so that DNN can speedily emit them back out instead of constructing the details from database records.  Page level caching is pretty much synonymous with the Snapsis Pageblaster module : which takes the contents of the entire page and caches them to reduce the amount of database calls.  A fine module and a staple for DNN sites everywhere : except mine, oddly, I've never taken the time to implement it.

No, what I wish to discuss here is the ability of the DotNetNuke framework to cache all sorts of objects and to handle all the messy plumbing for you.

A quick scan around documentation and let-me-google-that-for-you will show up an easy example like this :

DotNetNuke.Common.Utilities.DataCache.SetCache("myObject", myObject);

to store your object.  And then, somewhere else, this code to...
By Bruce Chapman on Saturday, January 10, 2009 4:08 PM
DNN gave me a bit of a shock when they released DNN 5.0 on December 24, 2008.  Just when you're thinking about winding down taking a few days off to spend with family, all of a sudden a major new release is out, just when plenty of people have some time off to tinker and play with the new version.  I already knew that the Url Master module wasn't compatible with DNN 5.0, I just thought I'd get some advance warning that a release was imminent and have time to fix the compatibility problems.  Consider that a lesson learned. 

The DNN 5.0 released coupled this with a major DNS mess-up for the ifinity.com.au domain (not my fault, I have to add), a messed up operating system on my main laptop and some ISP issues (the two were related, thanks, proprietary ISP software) and you could be forgiven for thinking that nothing was being done here at iFinity HQ.  Indeed there was even some DNN forum posts to that effect - had ifinity.com.au disappeared off the face of the earth, taking all of it's products with it?  Nothing...
Bruce Chapman
Hi, I'm Bruce Chapman, and this is my blog. You'll find lots of information here - my thoughts about business and the internet, technical information, things I'm working on and the odd strange post or two.

 

Share this
Get more!
Subscribe to the Mailing List
Email Address:
First Name:
Last Name:
You will be sent a confirmation upon subscription

 

Follow me on Twitter
Stack Exchange
profile for Bruce Chapman at Stack Overflow, Q&A for professional and enthusiast programmers
Klout Profile