Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 09 Sep 2021, 12:00
denverwork denverwork is offline
 
Join Date: Jul 2021
Incorrect calculation of statistics

Faced with the problem that the data for statistics are calculated incorrectly by cron.
For example, new threads.
core/includes/cron/stats.php:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

core/packages/vbforum/db/mysql/querydefs.php:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This data is calculated by the script and written to the table stats, which is run by cron.
When calculating the data in this case, not only new posts are included, but also private messages.

But if you start manually recalculating statistics in the admin panel, then the logic is as follows,
core/admincp/misc.php:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Why such a difference can be in the code? And how to fix it correctly so as not to make changes to the core?
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 08:43.

Layout Options | Width: Wide Color: