I’m going to show you an easy and efficient way of using PHP Caching to help reduce the database calls and improve the performance of your PHP script.
Instead of writing our own caching script and wasting time, we’re going to use the phpFastCache library to help us with our caching needs.
The caching method I’m going to present is file-based and is aimed towards MySQL query results caching.