adds cache_key for rails