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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Understanding Caching in DNNUnderstanding Caching in DNN
Previous
 
Next
New Post
4/9/2013 1:44 PM
 

I have a simple DNN site that does  not allow users to upload files anywhere (i..e; so content shouldn't change based on user actions).

 I have a web farm running 3 instances of IIS each running an identification configuration of DNN.  They of course all point to the same DNN database.

 I have enabled ASP.NET SessionState in the web.config of all these sites and pointed all three to the same SessionState database.

I have NOT turned on any DNN webfarm capabilities nor have I turned on anything special to web farms in IIS.

Now I place a module on the page and then I delete it and its gone.  Refresh the page a few times at it comes back.  Refresh again its gone again.  Clealy this module content is getting cached somewhere on the file system.  I go into the module settings (when it appears again) and turn off the cacheing and it seems to be really gone this time.

However, I have a Discussion Forum module on the same page and it keeps showing stale content everythird screen refresh.  I change the module settings to not use a cache provider and save but it has a red box beside it saying it is "inherited".  Save the settings and go back in and they aren't sticking.   I look at the page  settings and turn of cacheing on it but, no matter how I try and I can't get rid of stale forum content (i.e.; thread view counts) coming and going as I refresh the page.

I am just not understanding how to control the cacheing here.  How do people work iwth DNN in a web farm with regards to page/module cacheing? Is that what the 'web farm' setting on the host level  takes care of?  Essentially I just want to disable any kind of cacheing on the site so that I can get a consist page each time I refresh.  I can try an optimize later.

Thanks,
Rod

 

 
New Post
4/9/2013 9:34 PM
 

Firstly you do need to tell dnn that it is running inside a webfarm - and make sure the web.config for every server has the same machine key.

But more importantly - the community edition of DNN only supports webfarms that utilize a shared file server configuration - at the very least for the cache pool - this is because the community edition runs a file based caching system that needs to be shared by all servers in the pool.

Have a look at this document for current setup methodologies.

http://www.dotnetnuke.com/Portals/25/...

The professional edition supports a more advanced web service cache - but well that comes at a cost.

There is a writeup on the datasprings website that talks thru some of the setup steps:

http://www.datasprings.com/resources/... 

Westa

 

 
New Post
4/12/2013 12:50 PM
 

Wes, thanks for your reply

I read with interest the following paragraph in the datasprings post you pointed me to:

 <<If your application does not have major file writing operations you can also store the files locally on the two servers and remove the file server from the configuration. This server setup uses file replication to store the files across all front-end servers and any file change on one of the servers is replicated across all servers. This scheme is not suitable if your servers need a lot of file updates and changes because of the extra load that will impose.>>

This struck me as interesting as this is pretty much my scenario.  That is I have no shared storage for the web farm - each node has the exact same configuration, and almost the entire site is "readonly".   That is, my website has only two places where the user can "upload" anything:

1)  Their Account profile "avatar"
2) When they post on my Discussion Forum (running the standard DNN Forum module).

Coincidentally these are the only two places where I see a stale data problem across my 3 node web farrm cluster.

I would like to leave my configuration the way it is and simply address these two scenarios if I can.  I was hoping to be able to turn off completely any kind of file based caching for the Forums module.  I could live with DNN hitting the database each and every time forum information is displayed or posted.  Is there a way to do this?

As well is there anyway to tell the social aspect of DNN to use the database only for the full user profile?  Right now, the user can upload an avatar file and it resides in the file system causing my other 2 nodes to be out of sync.  If I have to I will remove the ability to upload an avatar - but if there is a way to avoid this....

Can anyone think of anywhere else on a standard DNN site that "files" would be created on a server during the regular course of a user browsing around your site?

Thanks for any and all ideas.
Rod

 
New Post
4/12/2013 6:35 PM
 
If you are letting a user upload an avatar then you are using the file system - the avatars are stored in the portals/0/users/ path.

You could try setting the page cache to none the module / pages in question to try and bypass the cache.
 
New Post
4/13/2013 12:05 AM
 
You then you a connection string that looks something like the following:



or explicitly declaring the name of the pc running the server instance



Westa
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Understanding Caching in DNNUnderstanding Caching in DNN


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