add cache in rails