Hi, I'm developing a site in PHP which has some complex SQL queries and I would like to implement a caching feature to reduce the load on the database.
I'm just wondering would it be better to write and read HTML directly to a file or perhaps create something like a YAML file with a delimiter to separate records then wrap it in HTML with a function?
My thinking is that this would allow user options (for example, number of records to display) to be applied to the request.
Any advice / suggestions appreciated.
Thanks.