Pinched from Tobias Luetke‘s "cacheable" rails plugin (github.com/tobi/cacheable/tree/master)
[Validate]