MyBB Community Forums

Full Version: Will replacing variables increase performance?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
There are some useless variables throughout the templates such as {$mybb->settings['bbname']} and {$mybb->settings['bburl']}, which I could replace with its static value.

My question is, does it increase performance at all? I'm guessing so, since it would run less queries, right?
MyBB should cache those so even no query
The settings are loaded from the settings.php file, the settings table is only queried if that file is empty/doesn't exist or when you change the settings. You won't see any speed improvement whatsoever from changing these from variables to static values.