ets-berkeley-edu/eggshell — pull request #79 by ctweney (2012-11-14 21:42:57+00:00)
Title: CLC-638 Introduce caching

Introducing some caching patterns.

UserApiController caches the whole request in the show method.

It also caches the User instance, which shortcuts several SQL hits.

UserApiController.expire is not yet used but should be called when anything changes user data.

The Canvas proxy caches the whole response from the remote canvas server. There's no invalidation, only a 10-minute expiration.

Rails seems to be generating appropriate ETags automagically.