Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / PHP

Caching Output in PHP

4.50/5 (2 votes)
16 Aug 2010CPOL 6K  
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';
}

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)