Jump to content

Storing config data in file or database?


etrader

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/245761-storing-config-data-in-file-or-database/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.