MySQL query caching using PHP/Zend_Cache

When there is no MySQL query_cache available

Using the Cache.php PHP class of the Zend Framework, it is relatively easy to cache and save MySQL query results on disk. This speeds up execution. In this context, caching means: execute a MySQL query once and save the result in a temporary file. For every time that same query is executed, you can simply use the result in your cache text file, as long as the database hasn’t changed. Often this is easier on the web server than having it to redo the query every time.

(more…)
16 queries, 0.115 seconds running PHP version 7.3.2 SaeQMcy k