Hey there, we’re building a front-end around the discourse API, and we’ve encountered a weird behaviour regarding stats not updating in real-time in a couple of places.
- For one, when fetching
/directory_items.json?period=all&order=likes_given
, we’ve noticed that if a user gives a couple of likes, the stats are not updated until quite some time passes. - The other place we’ve noticed this, is when fetching the user summary stats by fetching
/u/<user>/summary.json
, stats seem to not be updated correctly or at least not in real-time
We’re using bitnamis docker image to run Discourse, we’re unsure if this issue might be related to this particular image, or if this is an expected behaviour of the discourse API itself.
The docker image uses something called sideqik, which we thought could be the culprit of the issue. We’ve tried to run what seemed like the correct task (Jobs::DashboardStats) to update the stats, but without any luck. Stats do not update even after triggering the scheduled tasks. Is there any other task related to this, or are we not looking in the correct place?
Regards,
Manolo