I'm currently working on a CMS project and I've begun considering to have a config.xml file to store various settings for every page as well as global settings. A very simplified example:
Code: Select all
<webconfig>
<global>
<database>
<name>MyDatabaseName</name>
<user>root</user>
<password>Password1</password>
</database>
...
</global>
<newspage>
<db_table>news</db_table>
<newsperpage>20</newsperpage>
</newspage>
...
</webconfig>
I'm worried that if every page needed to consult the xml file for variable settings, for every user loading a function or database query, it would cause a lot of waiting on the serverside, slowing things down.. Or is this just noticable at 100(0) user peak +?
The site will at least start off relativly small and I guess caching would solve much of this if it would become much of a problem..
What do you guys think?