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 ...Automatic Cache ClearingAutomatic Cache Clearing
Previous
 
Next
New Post
12/22/2011 2:26 PM
 

Hello,

I'll explain the scenario, then explain the problem, with hopes that someone knows what I'm talking about as well as a quick solution.

_____________________________________________________________________________

I have a module (or quite a few really) that have custom settings within them for a "start date" and "end date". This date isn't like the normal start and end, it is more-so meant to decide which date range of data should appear, it is a survey results module.

I have 4 different time settings set up across different pages for [Last Year Results], [This Year Results], [This Month Results], [Last Month Results].

Of course the date will need to be changed accordingly as time progresses, so I can't manually go back each month and enter the new last month/last year/etc dates.

To fix this I created a Sql Agent job that monthly updates the dates in the ModuleSettings table accordingly.

I have tested it many times and it is fully functioning.

_____________________________________________________________________________

The Problem:

Dotnetnuke seems to automatically cache module settings, so even though I update a [From: 01/01/2011 To: 12/31/2011] into [From:01/01/2012 To: 12/31/2012]  the module on the browser side still displays the old original date.

The temp fix: After manually clearing dotnetnukes cache in the host menu it displays the correct date.

I can't however log onto these multiple websites to clear their cache every month to make sure the days update correctly.

Is there a Sql or dotnetnuke fix to automatically clear cache monthly or daily or something in that nature?

___________

Dang I made quite the wall of text. :)

 
New Post
12/26/2011 4:53 AM
 
hello, what you're seeing is normal and expected i.e. data changed outside dotnetnuke (e.g. direct database updates) will not be seen due to caching. Typically you will not have to worry about recycling the application to pick up this new data as IIS will unload the appdomain after 20 minutes of inactivity - if your website is not likely to have such a period of inactivity probably the easiest way to force this is to set the application pool to recycle at a fixed time (e.g. 5.30am daily). You could write a scheduled task to do this (i.e. execute a config.touch()) but i'd recommend using the application pool approach instead.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Automatic Cache ClearingAutomatic Cache Clearing


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