![]() |
[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. |
great tip - thanks for sharing!
|
Quote:
|
Where in AdminCP does it say set Server SQL Mode?
|
Nowhere. You can check by running the above query.
|
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? |
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 |
All times are GMT. The time now is 04:00 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|