class_cache
- Framework introduction
- > Package class_cache
This class allow you to easily manage a cache system.
This class will allow you to write easily in a file of your Web site and to store information to avoid having to make hard treatments which will slow down the loading of your pages. Its use is easy:
// create the cache object
$cache = new cache();
// checking of the presence of the data out of cache
$cache_datas = ' has string ';
if ($cache->incache($cache_datas)) echo $cache->readcache();
//save in cache
else $cache->saveincache($cache_datas);
Cache files existence are checked on the md5 algorythm on a key you wants to save (for exemple the datas you wants to store in cache, or filename, etc...)
For the cache folder, if there does not exist, it's creates automatically and protected from a htaccess file and a file index.html.
By default, the period of validity of the cache is 86400 seconds, and the cache folder is the ./cache. You can update these values during object building or constantly trought the method updateCache();
- Documentation
- Licence GPL
- Create the 01 Feb 2004
- Download
- Ask for an evolution or submit a bug...
- You use this class?
This package is not maintened anymore
Framework files
This class require the following framework files :
- /
- LICENCE FILE
- Cache/
- CLASS FILE
Documentation
The class documentation has been build with phpdoc
Documentation is also include in the package downloadable archive.
Download
The downloadable archive contains:
download package
This class have been download times





