diff --git a/app/models/budget/stats.rb b/app/models/budget/stats.rb index f627c59e7..91ec12a86 100644 --- a/app/models/budget/stats.rb +++ b/app/models/budget/stats.rb @@ -178,6 +178,6 @@ class Budget::Stats stats_cache :voters, :participants, :authors, :balloters, :poll_ballot_voters def stats_cache(key, &block) - Rails.cache.fetch("budgets_stats/#{budget.id}/#{key}/v10", &block) + Rails.cache.fetch("budgets_stats/#{budget.id}/#{phases.join}/#{key}/v10", &block) end end