Click here to Skip to main content
15,868,005 members
Articles / Programming Languages / PHP
Alternative
Tip/Trick

Caching Output in PHP

Rate me:
Please Sign up or sign in to vote.
4.50/5 (2 votes)
16 Aug 2010CPOL 5.8K   2  
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)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --