Reputation: 135
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?
Upvotes: 0
Views: 1634
Reputation: 39198
serialize
and unserialize
would be quicker, if you are using that data only in PHP.
See this question from a few days ago.
Upvotes: 3