A simple caching middleware for rails.