etrader Posted August 26, 2011 Share Posted August 26, 2011 To me it is logical to store config data such as site name, meta, etc in a php file rather than storing ina table in mysql database. This will reduce the number of calls to the mysql database, as these are key parameters and needed in every page. But, a well-developed CMS like Wordpress uses a mysql table to store such basic data. What is your idea? Ain't it better to reduce mysql loads? Quote Link to comment https://forums.phpfreaks.com/topic/245761-storing-config-data-in-file-or-database/ Share on other sites More sharing options...
Muddy_Funster Posted August 26, 2011 Share Posted August 26, 2011 Wordpress also loads that data into a DEFINE list at login, so the data is stored in the database for consistancy between sessions, as well as security and integrity and only queried once per login. Quote Link to comment https://forums.phpfreaks.com/topic/245761-storing-config-data-in-file-or-database/#findComment-1262288 Share on other sites More sharing options...
etrader Posted August 26, 2011 Author Share Posted August 26, 2011 Good point Thanks for clarifying the issue! Quote Link to comment https://forums.phpfreaks.com/topic/245761-storing-config-data-in-file-or-database/#findComment-1262294 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.