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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...OutputCacheOutputCache
Previous
 
Next
New Post
4/15/2007 10:55 PM
 

You might try the Response.Cache object:  http://msdn2.microsoft.com/en-us/library/y18he7cw(VS.71).aspx

Particularly the SetVaryByCustom method:   http://msdn2.microsoft.com/en-us/library/system.web.httpcachepolicy.setvarybycustom.aspx

You may also be interested in PageBlaster.Net


DotNetNuke Modules from Snapsis.com
 
New Post
4/21/2007 6:53 AM
 

Thank you for your response. I have read the msdn articles, however I am wondering how I can clear the cache programmatically in an easy way. I have the situation in which data is uploaded periodically to the web. At that time the cache should be removed to show the actual status of the data (like amount in stock). I could programmaticaly run through all querystrings and clear the cache, but that does not seem smart. Other option is to create a dummy file and then remove it. However, this would create a lot of dummy files. Is there not an easier way?

 
New Post
4/21/2007 8:35 AM
 

You should really look at PageBlaster.  It solves all these problems of caching dynamic pages.

You can set an interval on it so that the cache is cleared periodically, or you can manually force a cache refresh on the server just by browsing and refreshing the page with the CTRL key.


DotNetNuke Modules from Snapsis.com
 
New Post
6/22/2007 7:36 PM
 

Hi John,

I studied the cache object. But how to get it into DNN. I would like the current-thread in it so that each page is cached by culture. Also I have a own variable which depends on an anonymous user or on a own discount role when the user is logged in. This parameter is not in the querystring. How do I get them in to the DNN core?  I do not know where to find: override string GetVaryByCustomString(HttpContext context, string custom) to implement my own varybycustomstring.

Any help is appreciated.

Jelle

 

 

//Response.Cache.SetExpires(DateTime.Now.AddMinutes(5));

 

//Response.Cache.SetCacheability(HttpCacheability.Public);

 

//Response.Cache.SetValidUntilExpires(true);

 

//Response.Cache.SetVaryByCustom(System.Threading.Thread.CurrentThread.CurrentCulture.Name);

 

// public override string GetVaryByCustomString(HttpContext context, string custom)

 

//{

 

// if (string.Compare(custom, "uiCulture", true, System.Globalization.CultureInfo.InvariantCulture) == 0 && System.Threading.Thread.CurrentThread.CurrentUICulture != null)

 

// {

 

// return System.Threading.Thread.CurrentThread.CurrentUICulture.Name;

 

// }

 

// else

 

// return base.GetVaryByCustomString(context, custom);

 

//}

 

// <%@ OutputCache Duration=86400 VaryByParam=None VaryByCustom="uiCulture" %>

 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...OutputCacheOutputCache


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