Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , ,

Sponsored Links



How to improve performance in ASP.NET by page cache

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 21-02-2010
Member
 
Join Date: Feb 2010
Posts: 568
How to improve performance in ASP.NET by page cache

Hi all,

The best and fastest way to improve performance through caching to improve, of course, for any web developer should use the cache.Asp.netCaching mechanism under the very strong, with good caching mechanism allows us to greatly improve the performance of web applications, I want to know page cache in ASP.NET. Share some knowledge and experience. Thanks in advance.
Reply With Quote
  #2  
Old 21-02-2010
Member
 
Join Date: May 2008
Posts: 1,990
How to improve performance in ASP.NET by page cache

Cache Profile in ASP.NET is used to define cache settings associated with the page name. It is an optional attribute, the default value is null character ("")。 Important to note that, included in the user control of the @ OutputCache directive does not support this property. Specify this attribute in the page, the attribute value must be configured with the Web.config file <outputCacheSettings> under section outputCacheProfiles element match the name of one of the available items. If this name does not match the configuration file entry, an exception is thrown. Check ans reply.
Reply With Quote
  #3  
Old 21-02-2010
kelfro's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,976
Re: How to improve performance in ASP.NET by page cache

You can also use NoStore method. This property defines a Boolean value used to decide whether to block the secondary storage of sensitive information. Important to note that, included in the user control of the @ OutputCache directive does not support this property. This property is set to true is equivalent to execute code during the request "Response.Cache.SetNoStore ();". Best of luck.
Reply With Quote
  #4  
Old 21-02-2010
Zecho's Avatar
Member
 
Join Date: May 2008
Posts: 2,267
How to improve performance in ASP.NET by page cache

Use the Duration method, The page or user control used to set the cache time by units of seconds. By setting the property to the HTTP response from the object the establishment of a expiration policy, and will automatically cache a page or user control output. Note that, Duration attribute is required, otherwise it will cause parser errors. All the best.
Reply With Quote
  #5  
Old 21-02-2010
Reegan's Avatar
Member
 
Join Date: Oct 2005
Posts: 2,299
How to improve performance in ASP.NET by page cache

You can also use Location property. It is used to specify the output location of the cache entry. Its property values are OutputCacheLocation enumeration values, they are Any, Client, Downstream, None, Server, and ServerAndClient. The default value is Any, said output buffer can be used for all requests, including the client browser, proxy server, or processing the request on the server. Important to note that, included in the user control of the @ OutputCache directive does not support this property. Check and reply.
Reply With Quote
  #6  
Old 21-02-2010
opaper's Avatar
Member
 
Join Date: May 2008
Posts: 2,362
How to improve performance in ASP.NET by page cache

VaryByCustom is used for custom output caching requirements of any text. If the given value of the property browser, the cache with the browser name and major version information vary. If you enter a custom string, you must in the application's Global.asax file rewrite HttpApplication. GetVaryByCustomString method. Cheers.
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #7  
Old 24-03-2010
Member
 
Join Date: Mar 2010
Posts: 1
Re: How to improve performance in ASP.NET by page cache

I just want to point out here the disadvantages of ASP.NET cache here so that developers may be aware of the potential issues they may face. Issues with ASP.NET cache include:

1- Data Integrity Problems in Web Gardens /Web farms.

2- Cache size limitations

3- Single point of failure

4- Scalability problems

5- etc

An alternative to ASP.NET cache is a third-party distributed cache solution. I have personally used a free edition of NCache, called NCache Express. This application lets you store ASP.NET Sessions in cache without requiring you to change any code.

It is easy to setup and has no limitations that are in ASP.NET cache.
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to improve performance in ASP.NET by page cache"
Thread Thread Starter Forum Replies Last Post
Why bin-hopping algorithm could improve cache performance TanakL Software Development 8 26-09-2010 01:08 AM
How to improve the performance of ADO Muwafaq Software Development 5 06-03-2010 05:29 AM
How to improve network performance MARCIA Networking & Security 3 23-06-2009 04:38 PM
Increase the Disk Cache Size to Improve Performance in Windows TheGreatOne Tips & Tweaks 0 16-12-2008 07:53 PM
How to improve performance of my PC Seraphim Motherboard Processor & RAM 2 16-08-2008 08:29 PM


All times are GMT +5.5. The time now is 07:39 AM.