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...Performance and...Performance and...File cache never expires in a custom moduleFile cache never expires in a custom module
Previous
 
Next
New Post
9/6/2011 3:59 AM
 
Hello,
I wrote a custom module and I set a file cache of 600 seconds. I have discovered that the cache for this module never expires, nor automatically nor manually (clicikng on Clear Cache link). The only way to make the cache expires is to delete the file cache from file system. What I am missing?

Thanks
Eclipse79
 
New Post
9/6/2011 10:28 AM
 
Hi Eclipse79,

You might ensure that the "Purge Cache" scheduled task is enabled in the scheduler (under Host->Schedule); without this running on a frequent basis, cache files will not be automatically purged.  If/when it is enabled, ensure that it is executing successfully (with no errors in the event log) and that it has a history that indicates it is actually deleting files.

Hope this helps!

Brandon 

Brandon Haynes
BrandonHaynes.org
 
New Post
9/13/2011 4:39 AM
 
Hi Brandon, I solved my issue... it occurs because I misunderstood how cache works. If a module changes its content depending on database queries (ie a banner that returns information from announcement table), its cache will not purged even if you click on Tools - Clear Cache, just because it probably runs the method PurgeModuleCache (instead of PurgeCache). The scheduled event "Purge Module Cache" (that runs every 1 minute) calls PurgeModuleCache.... so my module cache will never be purged. The only way to purge it is to run "Purge Cache" event, disabled by default, that calls PurgeCache method. This way I can clear my cache.
 
New Post
9/13/2011 4:42 AM
 
Anyway I cannot understand the meaning of cache period (in seconds) that you can specify in the module settings. Why I can specify this value if PurgeModuleCache will not clear cache if you reached that value?
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...File cache never expires in a custom moduleFile cache never expires in a custom module


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