I have cached the output buffer of pages recently, but now I want to cache the values of variables.
I have a PHP file that executes a bunch of MySQL queries and then populates the variables with various data from these queries.
Some of these variables will never change , but some of them will change quite often. How can I cache certain variables this way? I use file based caching if that helps.
source
share