adds version to cache

This commit is contained in:
rgarcia
2017-06-30 22:58:25 +02:00
committed by Javi Martín
parent 75dfa4c663
commit ef958aae59

View File

@@ -192,7 +192,7 @@ class Budget
end
def stats_cache(key, &block)
Rails.cache.fetch("budgets_stats/#{@budget.id}/#{key}", &block)
Rails.cache.fetch("budgets_stats/#{@budget.id}/#{key}/v10", &block)
end
end
end