MyBB Community Forums

Full Version: Settings.php?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I'm just pondering here, but I was just wondering why is there a settings.php if all the settings are already stored in the database?
settings.php is an cache of the values from the database.
It gets updated each time anyone changes some settings.
The cache reduces the load on the database.
And means if the database is unavailable, information such as the board name, url, email etc are all available.
Chris, if the database is unavailable, MyBB wouldn't work >.>
Yea wouldn't it just return an die message then? "Couldn't connect to the database" or something?
The board name might be useful to display on the error page, and visitors could use the admin e-mail address to complain about the error. [Image: msn_tongue.gif]
Ok WDZ you win Smile
lol. Now I understand why its there Wink
Too bad an mysql error doesn't show the name of the board though Wink
Pages: 1 2