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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Strange Behavior im my current ModulesStrange Behavior im my current Modules
Previous
 
Next
New Post
2/20/2007 9:33 AM
 

Actually all you can is turn it on or off. The problem being that some modules are static enough to be cached and some are not.

What you can do is, if you have only a part of the content that can be cached, but not entire module (like DNN module caching does)... you can turn it off for installation of the module, and implement it yourself (via standard asp.net caching) only for the desired parts of your module.

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
New Post
2/20/2007 10:37 AM
 

DNN has a wrapper for the Asp.NET cache - the DataCache class.

If you are caching content in your module, you should use this class (especially if you intend to sell your module).  This is because the DNN wrapper can handle web-farms and persistence over Application restarts.

The module caching (that is configured in the Module Settings) is a separate caching process, whereby the module is rendered, and the rendered html output is cached - either in memory or on disk.  When DNN determines that it should be loading from the cache, it loads the previously rendered content, rather than processing ANY of the modules logic.

Note:  Module Caching is ignored for any user who has EDIT rights to the module.


Charles Nurse
Chief Architect
Evoq Content Team Lead,
DNN Corp.

Want to contribute to the Platform project? - See here
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
 
New Post
2/23/2007 8:20 AM
 

Thank you Charles, thank you Vladan !

Now it's clearer for me how to use the data cache in my modules. I've a last question regarding the cache: when using 'AJAX-enriched' objects in modules should be the cache turned off?
I had a lot troubles with telerik objects when AJAX was enabled. For me there were two solution: using cache -> disable AJAX or setting the cache time to 0.

 
New Post
2/25/2007 4:37 AM
 

Depends where the cachng is done...

if it's done on an output level (like module caching does), you will have problems, on the other hand if it's done on the logic side (for the lack of a better name)... e.g. GetListXxx in your code behind or BLL, then it will work.

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
New Post
2/25/2007 2:57 PM
 
cnurse wrote

DNN has a wrapper for the Asp.NET cache - the DataCache class.

If you are caching content in your module, you should use this class (especially if you intend to sell your module).  This is because the DNN wrapper can handle web-farms and persistence over Application restarts.

The module caching (that is configured in the Module Settings) is a separate caching process, whereby the module is rendered, and the rendered html output is cached - either in memory or on disk.  When DNN determines that it should be loading from the cache, it loads the previously rendered content, rather than processing ANY of the modules logic.

Note:  Module Caching is ignored for any user who has EDIT rights to the module.

Is there a way to code in the custom module to override cache at the module settings level?


Robert Tango
www.workcontrol.com
Custom Modules: UserManager|UserDirectory|UserImport|PortalSSO
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Strange Behavior im my current ModulesStrange Behavior im my current Modules


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