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
2009-06-18 16:39:45
Yes, the data will be used only by my Model class.
Julio Greff
2009-06-18 16:41:53
so please read the other topic, it contains helpful references
streetpc
2009-06-18 17:12:38