Skip to content

Instantly share code, notes, and snippets.

View jonwaghorn's full-sized avatar

Jon Waghorn jonwaghorn

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jonwaghorn on github.
  • I am cmonkey (https://keybase.io/cmonkey) on keybase.
  • I have a public key ASCa7AIWuV2JDolelSlTyHOPBG-Z_DUud_Fy00h9wKjU7Qo

To claim this, I am signing this object:

@jonwaghorn
jonwaghorn / Caching and Rails.md
Last active August 29, 2015 14:26
Overview of caching with Rails 4, with links to more

Caching and Rails

In the big world of webpage serving, Rails and Ruby is a bit slow, but it's good, wholesome, and comfortable! We like Ruby on Rails at 3months.

Caching is a technique for doing work once, and reusing that work later instead of doing it again.

The trickiest part of caching is knowing when the cached thing has changed, i.e when to expire the cache.

You can cache at many levels, client...server...web-server...database. This is mostly about the web-server/Rails level.