View Single Post
  #2 (permalink)  
Old October 15th, 2007, 08:00 AM
Maxxim Maxxim is offline
Friend of Wrox
Join Date: Mar 2006
Location: , , Portugal.
Posts: 310
Thanks: 0
Thanked 0 Times in 0 Posts

It's a good point!

The first version was:

if (BaseForum.Settings.EnableCaching && BizObject.GetCacheData(key) != null)

But, and if you write:

if (BizObject.GetCacheData(key) != null && BaseForum.Settings.EnableCaching)


Did you tested if the first condition is FALSE, ASPNET will verify the second condition?