Support road.cc

Like this site? Help us to make it better.

*It's fixed!* road.cc website issues — an apology and some updates

road.cc and its sister sites have been a bit under the weather recently, but we should be back in business now!

* Update: all of our sites should now be fully back to normal, it turns out it was an issue with our servers after all! It's frustrating how long this has taken to resolve, once again huge apologies to all of our regular readers and everyone who reads road.cc for the patchy experience over the past couple of weeks.* 

You might have noticed that the website has been running a little on the slow side recently, and navigating between pages, especially when logged in with a road.cc account, has been particularly difficult. We’ve definitely noticed too, as it’s made working on the website pretty tricky and frustrating these last two weeks. 

We’ve been experiencing a number of issues with the server over that time and the exact cause of them has been hard to pin down. The ChatGPT bot (and some others) hoovering up a fair bit of the server’s bandwidth certainly wasn’t helping, and we’ve blocked those, but the root cause of the slowness looks to be down at the database/application level and we’re still hunting for the fix. We haven’t released anything new to the site in the past few weeks, so the reason why the site has suddenly slowed is unclear.

What can you do?

The site currently works better if you’re logged out, because a lot of the time you’ll be seeing cached pages that aren’t directly from the affected server. Obviously you can’t comment if you’re not logged in, but you’ll probably find the site easier to navigate. Other than that, it’s mostly going to be a case of being patient with us. We're really sorry for the continued disruption and are confident the site will be back up to speed soon. 

Thanks to HoarseMann for conjuring up the lead image, originally posted in the comments underneath the live blog on 21st September. This has been a hugely frustrating time for us, but you gave us a good chuckle!

Dave is a founding father of road.cc, having previously worked on Cycling Plus and What Mountain Bike magazines back in the day. He also writes about e-bikes for our sister publication ebiketips. He's won three mountain bike bog snorkelling World Championships, and races at the back of the third cats.

Add new comment

54 comments

Avatar
Benthic | 6 months ago
0 likes

Whats happened to off.road.cc ?

Avatar
ktache | 7 months ago
2 likes

Well done.

Though we seem to have lost post count.

Avatar
dave atkinson replied to ktache | 7 months ago
6 likes

ktache wrote:

Well done.

Though we seem to have lost post count.

yup, post count has gone. it will return. but it was an unreasonably heavy query in its current guise and needs a bit of finessing

Avatar
BalladOfStruth replied to dave atkinson | 7 months ago
1 like

dave atkinson wrote:

yup, post count has gone. it will return. but it was an unreasonably heavy query in its current guise and needs a bit of finessing

This is something I've always wondered - if I was going to implement a post-count, I'd just iterate an INT in whatever database table most closely resembled our user profiles for each comment, and just leave it at that. If a post is added, it goes up by one, but if a post is deleted, it stays the same.

But I've noticed that our post-counts drop when trolls get banned (I've hit 400 posts at least three times now). Surely, it's not querying the database to calculate how many posts we've made, every time it our user-information is displayed?

Avatar
ktache replied to BalladOfStruth | 7 months ago
5 likes

Don't feed the trolls, and definitely don't quote them, then when they go too far, and they always do, and they are erased from history, your stuff will not vanish with them

Avatar
hawkinspeter replied to BalladOfStruth | 7 months ago
0 likes
BalladOfStruth wrote:

This is something I've always wondered - if I was going to implement a post-count, I'd just iterate an INT in whatever database table most closely resembled our user profiles for each comment, and just leave it at that. If a post is added, it goes up by one, but if a post is deleted, it stays the same.

But I've noticed that our post-counts drop when trolls get banned (I've hit 400 posts at least three times now). Surely, it's not querying the database to calculate how many posts we've made, every time it our user-information is displayed?

That requires extra logic though, so it's more usual to just do a sum of the comments that match a particular commenter. If you set up the relevant indexes (assuming a typical relational dB) then it should be a quick operation without having to worry about updating a count. When you don't have the relevant index or the query optimiser chooses the wrong plan, then you can start having full table scans which doesn't scale well. However, that's doesn't usually cause a noticeable problem until you start having millions of records.

Avatar
BalladOfStruth replied to hawkinspeter | 7 months ago
1 like

Again, front-end guy, so I'll defer to the knowledge of people who know better, but that "logic" (one line of code) can be handled by (for example) whatever PHP script receives AJAX request for the commment. When it generates the SQL query to add the comment itself to database, it also generates one to increment the post count in the "user_info" table. Then, when that page is rendered, and the query is produced to retrieve the comment, it just grabs the value of "postCount" from "user_info". No need to calculate anything.

 Not only is calculating the post count from every comment still on the database an unnecessary overhead, it's also "wrong". If I've made 500 posts, then I've made 500 posts. It doesn't matter if 100 of them were responses to someone who's been banned, I still made the posts. I've been members of a lot of forums for various hobbies, and not an single one of them has reduced a users post-counts when threads/posts have been removed.  

Avatar
belugabob replied to hawkinspeter | 7 months ago
0 likes
hawkinspeter wrote:
BalladOfStruth wrote:

This is something I've always wondered - if I was going to implement a post-count, I'd just iterate an INT in whatever database table most closely resembled our user profiles for each comment, and just leave it at that. If a post is added, it goes up by one, but if a post is deleted, it stays the same.

But I've noticed that our post-counts drop when trolls get banned (I've hit 400 posts at least three times now). Surely, it's not querying the database to calculate how many posts we've made, every time it our user-information is displayed?

That requires extra logic though, so it's more usual to just do a sum of the comments that match a particular commenter. If you set up the relevant indexes (assuming a typical relational dB) then it should be a quick operation without having to worry about updating a count. When you don't have the relevant index or the query optimiser chooses the wrong plan, then you can start having full table scans which doesn't scale well. However, that's doesn't usually cause a noticeable problem until you start having millions of records.

The extra logic is just a database trigger, surely?

Avatar
hawkinspeter replied to belugabob | 7 months ago
1 like

belugabob wrote:

The extra logic is just a database trigger, surely?

It's totally doable and personally, I'd slap in an extra field to keep track of number of comments. I do dislike database triggers though as once developers start using them, you end up with a mess of logic distributed between code and database triggers. You can also run into some issues with trying to update a row when you're also executing a query - often known as a mutating table issue.

Avatar
brooksby replied to dave atkinson | 7 months ago
3 likes

dave atkinson wrote:

ktache wrote:

Well done.

Though we seem to have lost post count.

yup, post count has gone. it will return. but it was an unreasonably heavy query in its current guise and needs a bit of finessing

But without post count, how will we know to ignore someone as a one-post wonder...?

Avatar
Hirsute replied to brooksby | 7 months ago
5 likes

Good point.

Or a troll who changes their username.

Avatar
ktache replied to brooksby | 7 months ago
3 likes

Or the knowledge of a 10,000 post poster...

Avatar
hawkinspeter replied to ktache | 7 months ago
1 like

ktache wrote:

Or the knowledge of a 10,000 post poster...

Is there such a thing?

Avatar
hawkinspeter replied to brooksby | 7 months ago
1 like

brooksby wrote:

But without post count, how will we know to ignore someone as a one-post wonder...?

If someone posts rubbish, then does it matter if they're a one-post wonder or a regular?

Avatar
Rendel Harris replied to dave atkinson | 7 months ago
2 likes

Will the "latest comments" section return to the front page as well? And will we ever get the capacity to click on someone's name and see all of their posts instead of a "404 no bikes allowed here" page? Please?

Avatar
Left_is_for_Losers replied to Rendel Harris | 7 months ago
1 like

I didnt think you would need it with a photographic memory. 

Avatar
ktache replied to ktache | 7 months ago
2 likes

And we're missing the new comments at the bottom of the home page.

My favourite place to find them.

Avatar
mark1a | 7 months ago
3 likes

Site seems to be behaving currently. Is it too soon to say? 

Possibly moved? I briefly saw an error from Apache rather than nginx.

Avatar
Jack Sexty replied to mark1a | 7 months ago
8 likes

Yep it's fixed now, it was a server issue after all! Apologies again. 

Avatar
chrisonabike replied to Jack Sexty | 7 months ago
3 likes

Thanks folks. Like a goalie your web support person is now either a hero (for sorting it) or leaving (for it happening in the first place).

Avatar
hawkinspeter replied to chrisonabike | 7 months ago
1 like

chrisonatrike wrote:

Thanks folks. Like a goalie your web support person is now either a hero (for sorting it) or leaving (for it happening in the first place).

It's not usually worth firing someone over computer issues as they've now got experience on what not to do. The exception would be if someone repeats the same kind of mistake, but this doesn't sound like that case.

Avatar
hawkinspeter replied to Jack Sexty | 7 months ago
2 likes

Jack Sexty wrote:

Yep it's fixed now, it was a server issue after all! Apologies again. 

I'm kinda curious now. Was it failing hardware or some software config issue?

Avatar
hawkinspeter replied to mark1a | 7 months ago
2 likes

mark1a wrote:

Site seems to be behaving currently. Is it too soon to say? 

Possibly moved? I briefly saw an error from Apache rather than nginx.

I saw an occasional Apache error a week or so ago, but I assumed that the backend (Drupal?) was using Apache with NgINX as the load balancer/reverse proxy. If it is Drupal, then it's not too difficuly to run that directly with NgINX (php-fpm IIRC).

Avatar
boardmanrider | 7 months ago
1 like

I am not surprises at all the errors; there are loads of CORS issues which will slow down a Wordpress based website down to mollases. Plus a bunch of 404s on files that really don't need to be loaded.

Just my two inflations on the ole track pump.

Avatar
mark1a replied to boardmanrider | 7 months ago
1 like

boardmanrider wrote:

I am not surprises at all the errors; there are loads of CORS issues which will slow down a Wordpress based website down to mollases. Plus a bunch of 404s on files that really don't need to be loaded.

Just my two inflations on the ole track pump.

I thought road.cc ran on Drupal rather than Wordpress.

My money is either on database snags or hosting config issue. The former maybe based on the fact it works better when browsing as a non-authenticated user. 

Avatar
boardmanrider replied to mark1a | 7 months ago
0 likes

You are indeed correct, it does appear to be Drupal. That said CORS will slow down a site which would as you suggest a hosting config issue.

Avatar
Spammercial | 7 months ago
4 likes

Hello everybody. Get the service from servers from Pornhub, or Youporn, etc...they are the fastest in the world...really...it won't affect the content...only the speed...  1

Avatar
giff77 replied to Spammercial | 7 months ago
3 likes

Been told off for being too quick....

Avatar
chrisonabike replied to giff77 | 7 months ago
2 likes

Came here for this, as they say...

Avatar
Rendel Harris replied to chrisonabike | 7 months ago
2 likes

Would the site not have to be renamed road10.cc (if one takes Godley and Creme's rather optimistic estimation...)

Pages

Latest Comments