Setup rails caching properly