From 95f9af8257d85764cc2938f0b81bdd39f60de468 Mon Sep 17 00:00:00 2001 From: tnantoka Date: Mon, 26 Nov 2018 13:21:24 +0900 Subject: Use cache_key_with_version instead of cache_key for the example in Low-Level Caching [ci skip] --- guides/source/caching_with_rails.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source') diff --git a/guides/source/caching_with_rails.md b/guides/source/caching_with_rails.md index 67b097f2ae..3ac3f8fa8b 100644 --- a/guides/source/caching_with_rails.md +++ b/guides/source/caching_with_rails.md @@ -295,7 +295,7 @@ Consider the following example. An application has a `Product` model with an ins ```ruby class Product < ApplicationRecord def competing_price - Rails.cache.fetch("#{cache_key}/competing_price", expires_in: 12.hours) do + Rails.cache.fetch("#{cache_key_with_version}/competing_price", expires_in: 12.hours) do Competitor::API.find_price(id) end end -- cgit v1.2.3