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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCaching EfficiencyCaching Efficiency
Previous
 
Next
New Post
1/5/2012 6:43 PM
 

Hello,

I'm hoping people can help me understand how best to use the cache... I am a little new to DNN caching stuff, and .NET's stuff there in general.

I am developing a module that manages some conference proceedings. So, we might have 5,000 papers or something for a conference, and these will be created, moved around, and placed in positions for the conference. Each paper objects has the sorts of things you'd expect - a title, abstract, authors, etc. Many different people will access and work with the items in many different ways.

First, is it bad to cache 5000 individual items? Or, should I cache the full list of the items? or both? Should I worry about the amount of space these things will use in the cache? or, is 5000 items actually not that big of a deal.

If I do cache these things, sometimes, I'll need the data in real-time. So, is it best to update the cache every time an item is updated? This was part of why I was worried about caching the full list of everything - wouldn't I have to update a 5000 item cache every time one small thing changes in one paper?

Thanks a lot in advance for any advice you might have...

Mike

 
New Post
1/7/2012 3:51 PM
 
this is a somewhat subjective issue - whilst 5000 items may seem a lot it depends on the size of the items e.g. if each is only a list item (with maybe 20 characters) then that is only ~1k of cache which relative to the ram available to a site is tiny. However caching is most effective when it is on items that are read more than written -either way you will have to ensure that the cache is kept up to date - take a look in the source for the dnncache and how we use callbacks to ensure that the cache is kept fresh for new items.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
1/7/2012 5:06 PM
 

Hi Cathal,

Thanks... Do you happen to know how DNN handle's user caching? Does it cache individual users (name, username, profile) and then also cache a list of user names? My guess is that my stuff is analogous in size to user records - so that might give me a good sense of what's safe.

Mike

 
New Post
1/7/2012 6:41 PM
 
the active users are cached based on their userid (the cache contains the serialized UserInfo object) - there are a number of other user items cached but they tend to be collection based -

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCaching EfficiencyCaching Efficiency


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