Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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 ForumsForumForumHow to clear Forum Group CacheHow to clear Forum Group Cache
Previous
 
Next
New Post
5/24/2007 12:55 PM
 

Hi!

I would like to reset the Forum Group cache of the forum module from a custom made module that is used to populate the forum. If i only insert new forums and groups to forum DB tables they are not displayed on the forum because forum is holding its group and forum data in cache. In order to display the data i inserted with a custom module i have to clear the module's cache. I just can't figure it out how to. I tryed using the function forum is using which is GroupInfo.ResetGroupInfo(int GroupID). I also tryed ForumInfo.ResetForumInfo(int ForumID). It didn't help. The cache is still not refreshed. So i tryed to clear the cache directly. By going throug forum code I found the way how cache keys are named "GroupInfo"+GroupID and "ForumInfo"+ForumID. Tryed running Cache.Remove(CacheKey) but no luck. Cache is still not refreshed.
I can only clear the cache by restarting iis or rebuilding a dll. Does anyone know how i colud refresh the cache? What am i doing wrong? Is the CacheKey correct?...

Thank you very much for your help!

 
New Post
5/27/2007 11:51 AM
 

i would think the cachekey is not right if its not clearing.

 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
5/27/2007 12:38 PM
 

I was also shure that is the case. Latter I found out with quickwatch the the key was correct because it was returning the correct object. When i removed it forom cache it was realy gone. Then I added the object directly form DB (very fresh version) but in the end i still got the same resault. My forum was missing in the forum gorup.

I was starting to get depressed at this point as you can imagine

Then i found a function in Forum module that did the trick for me. Don't ask me how I just know it works. To refresh the Forum cache use this function:
ForumController.ClearCache_ForumGetAll([GroupID])

Thanks for listening to me

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumHow to clear Forum Group CacheHow to clear Forum Group Cache


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