Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumClearing Forum Cache after database changesClearing Forum Cache after database changes
Previous
 
Next
New Post
7/6/2012 7:10 AM
 

Using DNN 6.2.0 we have written code at the database level to create a link between Social and Forums i.e. adding or deleting a user to/from a Social group will now perform the same action on a linked Forum.   We have one remaining problem.  Having added the user to a Forum behind the scenes in the database the Forums List View is not showing the user the new forum to which they have been added. Clearing the DNN cache does cause the module to display the new Forum in the user’s list so we believe it to be a cache issue. The cache clearly does not recognise that there has been a database change (fair enough).

We added a custom module to the same page as the Forum ListView.  The custom module calls the methodDotNetNuke.Common.Utilities.DataCache.ClearHostCache(True) and this solves theissue but of course is much to crude as it clears all cached objects in the system.  Ideally, what we need is to beable to clear just the Forum list cache. We have tried calling methods to clear the cache for the tabid and forthe user but these do not achieve what we need (appears to do nothing in fact). 

We assume therefore that the cached forum list is has been cached as a named cache object and that to clear it requires the name.  My request is does anybody know the name of the object or, the line of code necessary to clear the forum list cache?

Regards

Peter

 
New Post
7/6/2012 10:04 AM
 
Would it be easy to just d/l the Forum code and look in it?

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
7/6/2012 10:09 AM
 
I am told by my developers that the code for the forums module is not publicly available. Is this wrong?
 
New Post
7/6/2012 2:38 PM
 
I don't actually know, but I thought it was available.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
7/7/2012 3:33 AM
Accepted Answer 
If you're referring to the DNN Forum, the source code is available here http://dnnforum.codeplex.com/releases/view/69204
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumClearing Forum Cache after database changesClearing Forum Cache after database changes


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out