Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strategies for Caching on the Web? [closed]

Tags:

caching

What concerns, processes, and questions do you take into account when deciding when and how to cache. Is it always a no win situation?

This presupposes you are stuck with a code base that has been optimized.

like image 202
IanL Avatar asked Sep 22 '08 14:09

IanL


2 Answers

I have been working with DotNetNuke most recently for web applications and there are a number of things that I consider each time I implement caching solutions.

  • Do all users need to see cached content?
  • How often does each bit of content change?
  • Can I cache the entire page?
  • Do I need a manual way to purge the cache?
  • Can I use a single cache mechanism for the entire site, or do I need multiple solutions?
  • What impacts occur if informaiton is somehow out of date?
like image 163
Mitchel Sellers Avatar answered Sep 29 '22 19:09

Mitchel Sellers


I would look at each feature of your website/application a decided for each feature:

  • Should it be cached?
  • How long should it be cached for?
  • When should the cache be expunged?

I would personally go against caching whole pages in favour of caching sections of the website/application.

like image 43
GateKiller Avatar answered Sep 29 '22 20:09

GateKiller