Caching Output in PHP






4.50/5 (2 votes)
I wrote the script using a basic class with the intention of simplifying the Cache proccess doing so allows new features to be added without having to deal with complex code.Because we have a identifyer which can be used to check if the "function" is functional or not we can now indicate the...
I wrote the script using a basic class with the intention of simplifying the Cache proccess doing so allows new features to be added without having to deal with complex code.
Because we have a identifyer which can be used to check if the "function" is functional or not we can now indicate the current status of the cache function. (using a condtional statement)
if($cache->start()) { // The Cache Is In Use echo 'Cache Works'; } else { // Cache Dosent Work echo 'Cache Dosent Work'; }