65.9K
CodeProject is changing. Read more.
Home

Caching Output in PHP

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.50/5 (2 votes)

Aug 16, 2010

CPOL
viewsIcon

6041

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';
}