Summary

Summary

  • Caching improves Web application performance by storing responses to frequent requests in memory rather than processing each request separately.

  • Cached responses should not contain data that changes frequently, because the response is frozen in memory for the duration of the cache.

  • Use the VaryByParam attribute to cache multiple responses for a Web form based on different control selections.

  • To cache part of a Web form, create that portion of the Web form as a user control and add an OutputCache directive to that control.

  • Before using a cached user control in code, test to make sure it exists. Cached controls are available in code only when they are instantiated or when they are reloaded into the cache.

  • Cache application data using the Cache object.

  • Use the onRemoveCallback delegate to detect when cached data is about to be unloaded from memory.

  • Set a dependency to cause cached data to expire when an external data source has changed.

  • Monitor an application s use of the cache through the MMC Performance Logs and Alerts snap-in.



MCAD(s)MCSD Self-Paced Training Kit(c) Developing Web Applications With Microsoft Visual Basic. Net and Microsoft V[.  .. ]0-315
MCAD(s)MCSD Self-Paced Training Kit(c) Developing Web Applications With Microsoft Visual Basic. Net and Microsoft V[. .. ]0-315
ISBN: N/A
EAN: N/A
Year: 2003
Pages: 118

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net