diff --git a/guides/source/caching_with_rails.md b/guides/source/caching_with_rails.md index e8a682e2393a3e3b761497a5525b952037cf29ff..ae672bd462437572126fad2e7333d34012f533ec 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