vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Remove 1 Database Query Per Page (https://vborg.vbsupport.ru/showthread.php?t=80061)

Deaths 04-19-2005 02:34 PM

It's usefull for people who are new to PHP, but still want to optimize code a little.

Anyway, its your hack, your choice ;)

twoseven 04-19-2005 02:45 PM

i've been programmig so long that i read || as OR its just as readable imo.

Trigunflame 04-19-2005 08:01 PM

*wonders why my thread has become a php syntax discussion*

Marco van Herwaarden 04-19-2005 08:25 PM

Quote:

Originally Posted by Trigunflame
*wonders why my thread has become a php syntax discussion*

If you would like to make a comment, you should start with a '/*' and end with '*/', not just a '*':
PHP Code:

/*wonders why my thread has become a php syntax discussion*/ 


buro9 04-19-2005 08:33 PM

/* You should really leave spaces around those comments too. */

WebMasterAJ 04-19-2005 11:33 PM

So... lol... is this working for everyone? Sorry to bring this thread... umm... back on topic. :lol:

Erwin 04-20-2005 10:54 AM

Good idea. You're right, shutdown queries don't show up on the microstats... hence I saw no difference when I installed this. :) That 1 query really doesn't make a huge difference considering what it's doing. But theoretically if you don't need that query, why have it there? :)

Trigunflame 04-20-2005 12:10 PM

Quote:

Originally Posted by Erwin
Good idea. You're right, shutdown queries don't show up on the microstats... hence I saw no difference when I installed this. :) That 1 query really doesn't make a huge difference considering what it's doing. But theoretically if you don't need that query, why have it there? :)

That could be said about a lot of code vbulletin has :)

ps. I tried this on a forums im workin with, has on average 2000+ online; it "did" cut down his load somewhat by the reduce in just that 1 query.

Trigunflame 05-16-2005 05:04 PM

*wonders how many people have actually used this*

Surprised not that many... oO

WebMasterAJ 05-17-2005 11:50 PM

I have it installed... it can't hurt.


All times are GMT. The time now is 05:10 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01142 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete