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...How does DNN module caching work?How does DNN module caching work?
Previous
 
Next
New Post
3/23/2012 5:30 AM
 

Can someone please explain how module caching works since what I observe doesn't quite make sense. 

I have a DNN site on 5.6.3. in the host the caching is set to Memory, and Heavy.

I have a News Articles Latest module on a page. This work as expected when the the caching is set to File, 0 seconds. However, I have customised the News Articles Latest module and it takes more time to process now. So the page load is about 7 seconds. This is long and I wanted to use caching to reduce it.

So I set the caching to File, 1200 seconds. Now the page loads in about a second, so all is good. 

Now suppose a new article is submitted to the main News Article module. This can happen every few days based on predefined schedule. The News Article Latest module should show it as well. When the cache setting is not set, the module updates and shows the new changes. But when the cache is set to File, 1200, the module doesn't update even after several days and this is what I don't understand about caching. 

Is it not supposed to update after the 1200 seconds has passed? Doesn't it mean the cache expires after 1200 seconds after which a new call will be made which would update the cache? 

Strangely enough, if I am logged in as admin, the module  shows the updated version even with the cache setting of File, 1200. 

Very puzzled. Please advise. 

Henry




 
New Post
3/23/2012 6:02 AM
 
there is a purge module cache Scheduler Job, please make sure it is enabled.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/23/2012 8:03 AM
 
Thanks Sebastian. That was a great clue. I checked the scheduler and it is active, however the history shows that it is failing. It runs every half an hour and it is failing every time:

Purge Module Cache
Purged Module cache for FileModuleCachingProvider. Purged Module cache for FileModuleCachingProvider. Purging Module cache task failed. 0.374 False

Then I checked the eventlog. Two errors are generated for each:

THREAD ID: 16
TYPE: DotNetNuke.Services.ModuleCache.PurgeModuleCache
EXCEPTION: String was not recognized as a valid DateTime.
RESCHEDULED FOR: 3/23/2012 6:44:41 AM
SOURCE: STARTED_FROM_TIMER
ACTIVE THREADS: 2
FREE THREADS: -1
READER TIMEOUTS: 0
WRITER TIMEOUTS: 0
IN PROGRESS: 2
IN QUEUE: 5

--

AssemblyVersion: 5.6.3
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 475333fb-dcbe-4904-b5db-7fef723823b3
InnerException: String was not recognized as a valid DateTime.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.DateTimeParse.Parse
StackTrace:
Message: System.FormatException: String was not recognized as a valid DateTime. at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) at DotNetNuke.Services.ModuleCache.FileProvider.IsFileExpired(String file) at DotNetNuke.Services.ModuleCache.FileProvider.PurgeExpiredItems(Int32 portalId) at DotNetNuke.Services.ModuleCache.PurgeModuleCache.DoWork()

--

I have no idea what this error is about. What can I do to get rid of it? There is no information in the error that can suggest what is causing this.
 
New Post
3/27/2012 2:51 AM
 
Can someone help me on this error please. I had a look around the net and found very little information on it. There were some info here but did not help much:
http://www.dotnetnuke.com/Resources/Forums/forumid/108/threadid/411283/scope/posts.aspx

How can I find out where the source of the error is. The error log is very poor. It doesn't say anything about the actual problem or even where to start looking for it.
 
New Post
3/27/2012 3:26 AM
 
is there an item in Eventviewer associated, which may contain additional details?
edit scheduler job and re-save. Clear History. Which language are you using? Did you try upgrading to latest DNN 5 or DNN 6 version?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...How does DNN module caching work?How does DNN module caching work?


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