Thursday, May 19, 2011

DNN cache problem

Hi All,

Today I faced a very strange problem on one of the DNN sites that I manage. The problem was reported by my client and as per him some profile properties shown on user accounts screen were showing incorrect data sometimes. At first I thought that, a few changes that we made to display extra profile properties on user accounts screen might be posing problems, so I rechecked my code twice. But all went to wane. Then I thought it may be due to DNN cache, so I placed a single line code to clear cache everytime a new user is created. And lol!, the problem was resolved.

Code I used to clear cache
DataCache.ClearCache()

About Me

My photo
Delhi, India
Fun, music, travel and nature loving, always smiling, computer addict!!