EvilRob.org -> Weblog

Sysadmin Field Notes

Cache: Today's lesson

March 2, 2004

If you're going to cache some really important data, you should only cache it in one place. Not two, and certainly not three...while you're at it, provide a way to manually flush the cache, or at least make the logic for when the cache gets flushed pretty obvious. Please don't cache the same thing in three different places (memory, file system, and database), then embed the update checks in a complicated, nested fashion.

And then when you are done not doing all that, make sure that you use something about the cached data itself to determine staleness; not something else that can be totally independent of the data.

Posted by rmeyer at 11:32 AM | TrackBack (0)

This is Rob Meyer's weblog, a weblog focused on software development and system administration based on 10 years of experience. Want to explore further? You can find out more me or see the rest of my website.

Wondering if I've written on something in particular? Try searching:

You might want to take a look at some of the more requested postings (as judged by incoming traffic):

Want more? Subscribe to this site or contact me at rob at big dis dot com.

See my writings on:


Powered by Movable Type | Technorati Profile