PDA

Click to See Complete Forum and Search --> : Just an idea, no-one would notice but it might make the VB-Forums slightly faster


Xenonic_Rob
Jun 2nd, 2001, 04:02 AM
John.

I've noticed that your http://161.58.186.97/images/off.gif and http://161.58.186.97/images/on.gif images are shown on the screen with exact URLs to that path, for example http://161.58.186.97/images/off.gif. That means that the server has to check that the user is online or offline before the page is loaded. I think it'd be better, quicker, and more efficient for the VBBrowser by Geoff_xrx or whatever his name is, if you linked to it like this:

http://161.58.186.97/status.php?user=Xenonic_Rob

And the PHP script would automatically redirect to the correct image. The pages would load quicker because the server would not be needing to look for the user's status BEFORE the rest of the page had loaded.

Just a thought.

John
Jun 2nd, 2001, 05:08 AM
I'm not sure that idea would be so great. Firstly, the online/offline images are decided all in one main query, with a huge SQL join. To see what I mean, add &explain=1 to the end of the URL.

Secondly, calling up 30 odd extra PHP scripts just to display one page would give horrible results to the server, and caching would get in the way too.

John

Xenonic_Rob
Jun 2nd, 2001, 05:51 AM
Ahhhh well... just an idea ;)

John
Jun 2nd, 2001, 06:19 AM
Thanks, keep them coming :)

John

parksie
Jun 2nd, 2001, 06:24 AM
Wow...that &explain=1 thing's pretty neat :D A lot of queries there ;)

Xenonic_Rob
Jun 2nd, 2001, 06:36 AM
Yeah, just a few... !