Bug Report top 10 stats broken

Status
Not open for further replies.

ShippoFox

Est. Contributor
Messages
3,056
Role
  1. Adult Baby
  2. Diaper Lover
  3. Babyfur
  4. Diaperfur
  5. Little
  6. Other
This problem has been happening to me for weeks now. The top 10 stats rarely work. I took a screenshot to show what it does.

broken stats.jpg

It rarely loads. Maybe one out of 10 visits.
 

Cottontail

Sailing, sailing, ...
Est. Contributor
Messages
5,349
Role
  1. Adult Baby
  2. Diaper Lover
  3. Sissy
Yeah, I was getting ready to mention this. Seems like it's been a month or so since the Top Ten panels were snappy. Now, although they do occasionally pop right up, they usually take forever to appear, or simply never appear. Some database query has run off into the weeds.
 

Technologic

Est. Contributor
Messages
159
Role
  1. Adult Baby
  2. Diaper Lover
Yeah, I was getting ready to mention this. Seems like it's been a month or so since the Top Ten panels were snappy. Now, although they do occasionally pop right up, they usually take forever to appear, or simply never appear. Some database query has run off into the weeds.

They are still snappy as long as you load adisc using https instead of standard http. It takes three queries to get that data and all three run at the same time and the round trip for each query is roughly 250ms. Which is plenty fast for what they are. It all comes down to the fact that https://www.adisc.org and http://www.adisc.org are different origins and Cross Origin Resource Sharing (CORS) rules come into play.
 

Cottontail

Sailing, sailing, ...
Est. Contributor
Messages
5,349
Role
  1. Adult Baby
  2. Diaper Lover
  3. Sissy
They are still snappy as long as you load adisc using https instead of standard http. It takes three queries to get that data and all three run at the same time and the round trip for each query is roughly 250ms. Which is plenty fast for what they are. It all comes down to the fact that https://www.adisc.org and http://www.adisc.org are different origins and Cross Origin Resource Sharing (CORS) rules come into play.


Hmmm. That does seem to work. I guess my question now is: Why am I dropping in and out of HTTPS while using ADISC? When I HTTP to adisc.org and log in, I briefly transition to HTTPS while the "Thanks for logging in, Cottontail." message appears, and then I'm back to HTTP. If I click on the ADISC logo at the top-left of the page, however, I transition to HTTPS and stay there. Might be some different kind of bug. Or a browser bug. I'm using various versions on IE on desktop and Phone.
 

Technologic

Est. Contributor
Messages
159
Role
  1. Adult Baby
  2. Diaper Lover
It is just a matter of what address is associated with each link. For the most part every single link on the site points to https, unless it is a link to an outside resource or a user posts it. The only time you get to http is if you navigate there to begin with. Then it comes down to how you navigate. I tend to click a link, then back out using the back button. Which will take me from http to https then back to http when I back out. If instead you start on http (say the home page) then click into a thread (now you are on https) then instead of clicking back you click any of the other links that bring you "up" one level you will still be on https.

I have gotten into the habit of typing in adisc.org then as soon as it loads I click the logo. Or if I am paying attention I select the https version from the address bar drop down as I type.

The two likely solutions are to simply redirect all http traffic to https so no matter what everyone is using https. Or change all the links to use the current protocol so if the user is on http and they click a link, leave them on http and the same for https. But those are Moo things. All we can do is make sure we load up https to have access to the top 10s.
 

ShippoFox

Est. Contributor
Messages
3,056
Role
  1. Adult Baby
  2. Diaper Lover
  3. Babyfur
  4. Diaperfur
  5. Little
  6. Other
Clicking the logo does seem to make it work.
 
Status
Not open for further replies.
Top