views:

208

answers:

1

I'm using a framework that loads the table structure from the database everytime I open a page. I'm thinking of using JSON files to cache this data, and let PHP parse them when I need it. Is it better than loading data from the database? Are there another ways to do something similar?

+3  A: 

serialize and unserialize would be quicker, if you are using that data only in PHP. See this question from a few days ago.

streetpc
Yes, the data will be used only by my Model class.
Julio Greff
so please read the other topic, it contains helpful references
streetpc