Tuesday, June 10, 2008

Caching Defined

The Most Important Web Accelerator


We have seen how to speed up download, now this article is for the same series and written for same purpose. Following is to show you the power of caching.

Why Should We Use Caching?
We have been learning this term for so long,but have ever think it in real term,Just think it as real life scenario....

Just think there is WELL(deep down to store water) and it has water in it ,you need water everyday and your home is far from it ,now lets take what if Caching is not there ,you go out there everyday to have water whenever you are thirsty, There is no limit how many times you can be thirsty and how many times you need to go there....Now think in terms of Caching....If you have some container in which you can keep water so you just need to take out water for only time and after you can have it from your storage...this is the same thing with Caching....'availability OF YOUR DATA' Data caching would be like using shopping carts to quickly retrieve categorized items from grocery shelves, saving time and allowing the grocery clerk to service more customers.

• Directory and file caching
• Proxy caching
• Client-side output caching
• Server-side output caching
• Fragment caching
• Data caching


Zombie Note! Oh there are many types available isnt it?? but what imp is when to use it..and which type of caching is used...It is point less exercises to delete the proxy-caching and wait for server-side ouput caching to work...there are many cases we should take into consideration...
Caching Defined
Caching is simply buffering content for the purpose of quick retrieval, providing benefits of faster client display, limited bandwidth utilization, and reduced server load.
Caching Terminology
Generated output is web page content that has been executed and Once the output is in a generated state it cannot be changed
Expiration Periods are used to predict when generated content will become stale and need to be refreshed. For example, a report that changes once a week can have a weekly expiration period which tells cache when it is time to retrieve an update. If the report’s data changes before the expiration period ends, then the user will view obsolete data.
Versioning of generated output are variations of a complete web page or a portion of a web page. Versioning can be based upon variations of a web control or a query string value. For example, variations of a web page’s region report can be stored in cache based upon the selection of country in a drop down list control.
Data Scavenging is used at both the client and the server to free up memory when cache becomes full. This helps to keep client and server cache from overburdening storage resources and makes room for newer items. Items thrown away at the client are determined based upon lack of use. Items thrown away at the server are determined based upon preset priorities.....content coming soon....stay tuned