
ASP.NET
- Caching
Due
to the nature of the Web it is necessary for developers to look
at implementations that improve performance. One method of improving
performance that has been implemented by Dataworks developers on
the Waterford Institute of Technology's forestry web site (www.forvams.org)
was 'caching'.
In
general, caching is the temporary storage of state for faster retrieval.
There are different types of caching available for web applications.
For the forestry site, the caching implemented is on the web server
itself. Three types of caching available through ASP.NET are 'Page',
'Fragment' (partial page) and 'Data Caching'. These are directly
applicable to ASP.NET and should be used, at least to some extent,
in any web application built with ASP.NET.
An
example of caching would be to take a web control such as the news
archive menu on this particular site. In this case an ASP.NET web
control (basically mini pages within a page to make up different
sections), which is dynamically created but remains static across
all pages on the site. Rather than the web server processing the
code for this control every time it is requested it is cached using
'fragment caching'. Any subsequent access to the same control (which
will occur as the user navigates each page of the site) will be
returned from the cache, saving the time it would have taken to
dynamically generate the page.
Article
by Sam Whelan, Senior developer, ASP.Net specialist at Dataworks
|