The Arcive of vBulletin Modifications Site. |
|
|
[vB 4.1.3+] Get rid of one query per page with a simple configuration change
If you are running vBulletin 4.1.3+ and you do not have set a Server SQL Mode you can get rid of one query on ervery page by adding Code:
$config['Database']['no_force_sql_mode'] = true; To verify that no mode is set run [sql] SELECT @@GLOBAL.sql_mode; SELECT @@SESSION.sql_mode; [/sql] If both queries give empty results no mode is set and you can safely add the configuration setting. |
|
#2
|
||||
|
||||
|
great tip - thanks for sharing!
|
|
#3
|
||||
|
||||
|
|
|
#4
|
||||
|
||||
|
Where in AdminCP does it say set Server SQL Mode?
|
|
#5
|
||||
|
||||
|
Nowhere. You can check by running the above query.
|
|
#6
|
||||
|
||||
|
Awesome! Thanks!
--------------- Added [DATE]1309123130[/DATE] at [TIME]1309123130[/TIME] --------------- Would it be possible to make this a plugin versus editing the config.php file? |
|
#7
|
||||
|
||||
|
Running the check above i get the return
@@GLOBAL.sql_mode; @@SESSION.sql_mode; So am i advised not to use this edit? Thanks just wanted to be double sure |
![]() |
|
|