Caching is an evil

Caching
Caching @Image courtesy of jscreationzs / FreeDigitalPhotos.net

Caching is an evil

Welcome to CodeSpread!

I know ‘Caching’ was created to ease out the network resources but i have seen the situations where it emerged as the biggest evil.

I can remember many situations when the website is updated but still, live website was showing old content plus the developer forgot that caching is ON. Just imagine, development team is doing a night out to resolve this issue and after spending countless hours, people came to know that page is cached. Believe me, i have seen many situations like these. 😛

Next , when Client asks why it happened? They receive a very familiar reply “Caching Issue”. I got caught in this situation few times and my reply was the same as above. Client nodded and everyone forgot.

Lately, client put a query that what is this caching? why it is a recurring issue? why can’t we disable it ? its more of a pain for us. Prior to this, client nodded whenever this issue came unaware of the issue so I must admit that this is a query asked for some personal knowledge.

Let’s see how can we relate it to common terms.

A person goes to a restaurant and orders something from la-carte and then waits for the order to arrive. Few minutes and food is on the table.yummy!!! Did anybody notice that there is some pickle,some salad, some sausages are already on the table? Nobody ordered them but they are already there on the table.Though they doesn’t form the complete meal but still without them food doesn’t taste well.

So this already prepared item on the table can be imagined as cached items. As a user,nobody notices this item but it forms a necessary requirement for a smooth web experience. Similar to these items, few/all sections of the site are prepared once and can be served again and again. if caching is removed, then each section/item has to be freshly prepared and served which will take additional time and consume more web resources.

I hope this example make some sense and only your opinion can prove that. Please ask any question or provide more creative idea to explain caching.

Author: hershey

A passion for knowledge drives me to do programming, A passion for programming drives me to create something different, A passion for creation drives me to spread the knowledge.

Share This Post On

0 Comments

  1. nice superb explaination

    Post a Reply
  2. thanks for the tutorial
    I am having a problem.
    The feature “Create SQL server database” isn’t available , I can’t select it.
    Can you help, please ?

    Post a Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

More from CodeSpread:

  • Caching in WCF ServicesCaching in WCF ServicesYes, It is possible and clearly a  significant performance enhancement. How caching works for WCF services? Lets assume, a user sends a request to a service so at server, service method is called...
  • C#: My experience with const keywordC#: My experience with const keywordThere are numerous post on internet about 'what is const keyword in .net' or 'what is the difference between const keyword and read only' and I must say many might have already mugged it up like me...
  • 20 Dec: Must Read Codes [6-10]20 Dec: Must Read Codes [6-10]We are sharing few must read codes/concepts which are required now and then. Each of these codereads doesn’t require a full length descriptive article so combining them into groups of five. CodeRe...
  • 19 Dec: Must Read Codes [1-5]19 Dec: Must Read Codes [1-5]We are sharing few must read codes/concepts which are required now and then. Each of these codereads doesn't require a full length descriptive article so combining them into groups of five. CodeRe...
  • Asp.Net: More about CookiesAsp.Net: More about CookiesWe have seen, how our cookies looks in our last article Cookies Part 1. In this article, we will talk about their properties,limitations and technical part. Properties and Limitations Cook...
  • Nullable .Net typesNullable .Net typesWe declare .net types in our project daily but still we do not recollect default values for each .net type so we end up doing null check for each data type. Its a basic mistake of a developer but ....
  • C# Code to send a MailC# Code to send a MailWhile working in a project, we always neglect the importance of the code which we have written many times and now end up in copy pasting the code from old projects. Lately, I saw a request in fo...
  • C#: Useful JSON in .NetC#: Useful JSON in .NetWhy JSON? All web applications revolve around large chunk of data and availability of that data to our application is of utmost importance. To do that, we have options like fetch data from databas...