|
-
Jun 2nd, 2001, 04:02 AM
#1
Thread Starter
Addicted Member
Just an idea, no-one would notice but it might make the VB-Forums slightly faster
John.
I've noticed that your and 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.
-
Jun 2nd, 2001, 05:08 AM
#2
Fanatic Member
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
-
Jun 2nd, 2001, 05:51 AM
#3
Thread Starter
Addicted Member
Ahhhh well... just an idea
-
Jun 2nd, 2001, 06:19 AM
#4
Fanatic Member
Thanks, keep them coming 
John
-
Jun 2nd, 2001, 06:24 AM
#5
Monday Morning Lunatic
Wow...that &explain=1 thing's pretty neat A lot of queries there
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jun 2nd, 2001, 06:36 AM
#6
Thread Starter
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|