We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Fragment Caching

Thread ID:

Created:

Updated:

Platform:

Replies:

80634 Apr 20,2009 10:22 AM UTC May 1,2009 11:21 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: FAQ
Administrator [Syncfusion]
Asked On April 20, 2009 10:22 AM UTC

Hi....

Im working on Fragment Caching, since "Location" attribute is not defined for the user controls. Im looking for help to make the Caching specific either to Client or Server Side. And also i wanted to delete the cache according to the CacheKey ... Pls advice me on the same.


Pradeep N [Syncfusion]
Replied On May 1, 2009 11:21 AM UTC

Hi,

The fregement caching is done as follows,

<%@ OutputCache Duration="60" Location="Client" %>

To cache a user control we can use VaryBy Control attribute of output cache to cache the specific user control.

page would cached for 60 seconds specifically for the UserControl1.

If Location="Server" is specified Page will be cached on the server only.

If Location="Server" is specified Page will be cached on the client browser only.

The expiry of cache is done by setting a time span while inserting through Cache.Insert() or make it expired after a certain logic using Cache.Remove().

Regrds,
Pradeep.




CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;