/** * cache class . used to cache a file or part of a file * @author Mohammad A.Baydoun <hide@address.com> * @copyright copyright (c) copyright 2011 * @license GNU Public Licence (GPL) */ /** * @version 1.0 support file and part file caching * @example * ***file caching*** * $cache=new cache(); * $cache->start_cache(); * place data in between example (html /php echo of your output) * $cache->end_cache(); * * * ***part file caching*** * $cache=new cache(); * $cache->start_cache($id); where $id is the part you want to cache it * place data in between example (html /php echo of your output) * $cache->end_cache(); */ /** * check the sample in order to see the class in action * please note that the folder upload should be 777; */