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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to disable module output caching?How to disable module output caching?
Previous
 
Next
New Post
5/19/2010 8:54 AM
 
Hi there, I have a question regarding module caching. How do I disable it?

My problem is that I created a module that is using a RadComboBox that populates data when the user starts typing. This is working correctly when I am logged in as administrator, ergo the "onItemRequest" event is envoked each time the user types something, but if I am logged in as normal user or not logged in at all, then no event is envoked, nothing is happening.

I approached Telerik with this problem and there reply confirmed my suspicions:

"The most common cause of this issue is that Output Caching for the module is enabled. When you are logged in as administrator Output Caching is disabled automatically and the callback successfully requests new content.

You can avoid the issue in all cases by disabling the caching feature of the module for all users.
".

I looked into the Default Cache Time and set it to -1 (as it says on the help label tooltip), but it doesnt work. Also tried in the modulesettings, that didnt work either.

Any suggestions?
 
New Post
5/19/2010 9:28 AM
 
The correct setting for disabling module output caching is 0.  You can see this in the following method from the ModuleHost class.

''' -----------------------------------------------------------------------------
''' <summary>
''' Gets a flag that indicates whether the Module Instance supports Caching
''' </summary>
''' <returns>A Boolean</returns>
''' <history>
'''     [cnurse]    12/15/2007  created
''' </history>
''' -----------------------------------------------------------------------------
Private Function SupportsCaching() As Boolean
    Return _ModuleConfiguration.CacheTime <> 0 _
            AndAlso HttpContext.Current.Request.Browser.Crawler = False
End Function

Joe Brinkman
DNN Corp.
 
New Post
5/19/2010 9:36 AM
 
I have tried with 0 aswell, did not work. I bealive that 0 is the defauly value aswell, but still, not working. Thank you for the suggestion though, please let me know if you have more :)
 
New Post
5/19/2010 9:38 AM
 
You can see the problem in action here: http://www.bolist.se/orminge/Hem/Hittatilloss.aspx

I have 0 in both places, in the module definition AND in the module settings.
 
New Post
5/19/2010 10:11 AM
 
I can see the module on the page but I have no  way to determine if caching is indeed the issue.  I would suspect some other issue is at play since the caching code is fairly well tested.

Joe Brinkman
DNN Corp.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to disable module output caching?How to disable module output caching?


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