Implement caching using Rails' cache digests