You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The admin/statistics page for participatory budgeting is really useful for allowing admins to be able to see how much engagement they are getting during a process.
The way it is behaving at the moment just causes confusion!
Description
Admin Statistics for Participatory Budgeting appeared to show random values on page
/admin/stats/budget_balloting?budget_id=
Some of the values on this page never update. Votes per heading appears to be ok, but the other values don't seem to update
After lots of investigation it appears to be a caching issue.
app/models/budget/stats.rb is caching the stats methods but they do not appear to be ever updated in the cache
Why this is needed
The admin/statistics page for participatory budgeting is really useful for allowing admins to be able to see how much engagement they are getting during a process.
The way it is behaving at the moment just causes confusion!
Description
Admin Statistics for Participatory Budgeting appeared to show random values on page
/admin/stats/budget_balloting?budget_id=
Some of the values on this page never update. Votes per heading appears to be ok, but the other values don't seem to update
After lots of investigation it appears to be a caching issue.
app/models/budget/stats.rb is caching the stats methods but they do not appear to be ever updated in the cache
Running Rails.cache.clear fixes the issue
For example at
https://wdn.communitychoices.scot/admin/stats/budget_balloting?budget_id=7
** Before clearing cache
and
https://dundeesvoice.communitychoices.scot/admin/stats/budget_balloting?budget_id=12
after Rails.cache.clear
The text was updated successfully, but these errors were encountered: