Julio Greff
Julio Greff

Reputation: 135

Cache database data in JSON

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

Answers (1)

instanceof me
instanceof me

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

Related Questions