I've found an article on the net talking about, caching query results
in a folder,
it converts the SQL statement in his MD% to have a filename for the cache file by default.
Then it saves all queries in your configured dir.
Anytime you perform a query u pass to your custom Class for DB caching the TTL
for this query. Then it performs filemtime on the cache MD5 file, and if it is old it will
replace it renewing the MySQL query result from DB , otherwise it will output the file contents.
Query results are saved serialized in the file, and then need to unserialize.
Nice Idea!
But........does this really improve performances? I've some doubts on it since the cache writing/reading activity could be not that light task (for PHP process) as one can think.... (am I wrong?)
What are your opinions?
Many thanks