caleb89taylor
Member
I've posted some related issues to this before that ended up being resolved or partially resolved, but there seems to be an underlying issue of at least some of our cron jobs not running properly.
Here's are two big issues:
1. The cron job that updates view counters doesn't seem to work. Our xf_thread_view table never gets emptied unless we run the job manually. I'm not sure how to tell if the "view" counts are getting updated but the memory table definitely isn't getting cleared.
2. Some users aren't getting trophies points awarded. I've mentioned this in a post before that I thought might be a non-issue as I myself got trophies points awarded. However, it still seems to be a problem. Active users are hitting milestones and not getting trophies. We are talking they haven't received trophy points for months. One user I saw has 0 trophy points despite having 2100 posts and we give several trophies for far few posts than that.
I'm worried that there are more issues that we don't know about. Some users have complained about seeing all 0's for forum statistics as an example. I would like to once and for all knock this bug out and hopefully resolve issues we've been having.
My big questions:
1. I assume all cron jobs are not failing. This would seem to cause a lot of issues.
2. If it's not the cron jobs, then it could be custom code we've written. I know at least for the thread view cron job we have custom classes that have overwritten methods that handle the updating of xf_thread and truncating of the table xf_thread_view (which seems like an obvious culprit except for the odd fact that running manually works).
What steps should I take to debug to determine if it's cron job or custom code? I've started by checking the xf_cron_entry table and for one of the cron jobs that I know has issues, XenForo_CronEntry_Views::runViewUpdate, does have a next_run field in the future.
Any help would be greatly appreciated.
Caleb
Here's are two big issues:
1. The cron job that updates view counters doesn't seem to work. Our xf_thread_view table never gets emptied unless we run the job manually. I'm not sure how to tell if the "view" counts are getting updated but the memory table definitely isn't getting cleared.
2. Some users aren't getting trophies points awarded. I've mentioned this in a post before that I thought might be a non-issue as I myself got trophies points awarded. However, it still seems to be a problem. Active users are hitting milestones and not getting trophies. We are talking they haven't received trophy points for months. One user I saw has 0 trophy points despite having 2100 posts and we give several trophies for far few posts than that.
I'm worried that there are more issues that we don't know about. Some users have complained about seeing all 0's for forum statistics as an example. I would like to once and for all knock this bug out and hopefully resolve issues we've been having.
My big questions:
1. I assume all cron jobs are not failing. This would seem to cause a lot of issues.
2. If it's not the cron jobs, then it could be custom code we've written. I know at least for the thread view cron job we have custom classes that have overwritten methods that handle the updating of xf_thread and truncating of the table xf_thread_view (which seems like an obvious culprit except for the odd fact that running manually works).
What steps should I take to debug to determine if it's cron job or custom code? I've started by checking the xf_cron_entry table and for one of the cron jobs that I know has issues, XenForo_CronEntry_Views::runViewUpdate, does have a next_run field in the future.
Any help would be greatly appreciated.
Caleb