Server Browser Playtime + Score Bug, Fixes, & More

Hi all,

I just wanted to give an update on changes I’ve made to the server browser.

A few months ago, I started rebuilding the main website in a development branch that would introduce many new features including the mod workshop, communities, tags, and much more. While I’ve been making progress with the rebuild, it is still nowhere close to being done. This resulted in not pushing many updates to the production branch and after a couple of months, it was clear there was a bug with server user play times and scores.

I’ve been really busy the past few months with work and other TMC-related things so I haven’t had time to address all of this until today

Unfortunately debugging and fixing these issues did not go as smoothly as I had hoped, so it took a while to get things working smoothly.

Lastly before the update notes, I just wanted to note I’ve been creating new articles on our blog and have many others planned!

Servers

Here are changes related to servers on our website.

  • Fixed random categories showing as 0/0 users/servers on the app and category-specific pages. Also fixed 0/0 being recorded in the graphs as well for the affected game modes.
  • Added indexes that should speed up performance when loading the server browser.
  • Optimized many tasks and hot paths from query program to website (mostly related to database). This resulted in less load/faster query times.
  • Raised server limit of all apps/games to 50,000. All games can now have up to 50,000 servers added.

Users

  • Fixed bug that led to highly inflated user playtime and scores.
  • All user playtime/score (totals) have been COMPLETELY RESET due to the bug mentioned above.
    • This change also rebuilt many techy things that led to more saved space and better optimization.

Misc

  • Optimized robots.txt and denied crawling on many pages (e.g. most are server sub-pages such as /app/css/server/<ip>:port>/players).
    • This should help free up crawl budget for our forum and blog that should help with SEO.
    • I plan on making many more changes to this with the current rebuild I’m working on.

If you have any questions or issues, please feel free to reach out :slight_smile:

Thank you for reading!